<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _ensure_scope(level, global_dict=None, local_dict=None, resolvers=(), target=None, **kwargs):
 """Ensure that we are grabbing the correct scope."""

    return Scope(level + 1, global_dict=global_dict, local_dict=local_dict,
                 resolvers=resolvers, target=target)