code: def _get_config(remapping_on=False):
      """Returns a CongfigProto with remapper optimizer on/off."""
      rewrite_config = rewriter_config_pb2.RewriterConfig(
          remapping=rewriter_config_pb2.RewriterConfig.ON
          if remapping_on
          else rewriter_config_pb2.RewriterConfig.OFF
      )
      rewrite_config.min_graph_nodes = -1
      graph_options = config_pb2.GraphOptions(
          rewrite_options=rewrite_config
      )
      config = config_pb2.ConfigProto(graph_options=graph_options)
      return config
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  from absl.testing import parameterized
  from tensorflow.core.protobuf import config_pb2
  from tensorflow.core.protobuf import rewriter_config_pb2
  from tensorflow.python.client import session
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import meta_graph
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import test_util
  from tensorflow.python.grappler import tf_optimizer
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import init_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import nn
  from tensorflow.python.ops import nn_ops
  from tensorflow.python.ops import random_ops
  from tensorflow.python.ops import variables
  from tensorflow.python.platform import sysconfig
  from tensorflow.python.platform import test
  from tensorflow.python.util import _pywrap_utils
label_desc: Use image node_id 4 for calling a global function with example usage: _get_config(remapping_on) and returns: config