code: def _ensure_scope(level, global_dict=None, local_dict=None, resolvers=(),
                    target=None, **kwargs):
      
      return Scope(level + 1, global_dict=global_dict, local_dict=local_dict,
                   resolvers=resolvers, target=target)
docs: Ensure that we are grabbing the correct scope.