code: def outer_scope_getter(scope, new_scope=""):
      """
      remove a scope layer for the getter
  
      :param scope: (str) the layer to remove
      :param new_scope: (str) optional replacement name
      :return: (function (function, str, ``*args``, ``**kwargs``): Tensorflow Tensor)
      """
  
      def _getter(getter, name, *args, **kwargs):
          name = name.replace(scope + "/", new_scope, 1)
          val = getter(name, *args, **kwargs)
          return val
  
      return _getter
  
imports: import os
  import collections
  import functools
  import multiprocessing
  from typing import Set
  import numpy
  import tensorflow
label_desc: Use image node_id 23 for calling a global function with example usage: outer_scope_getter(scope, new_scope) and returns: _getter, val