Call to undefined function switch_to_blog()

hi there i have the follow error code on install plugin

Call to undefined function switch_to_blog()