code: def test_eager_const_pfor(self):
      @def_function.function
      def f_using_eagerconst():
          def vec_fn(x):
              graph_def = self._make_graph_def(
                  """
             node { name: 'x' op: 'Const'
               attr { key: 'dtype' value { type: DT_FLOAT } }
               attr { key: 'value' value { tensor {
                 dtype: DT_FLOAT tensor_shape {} float_val: 3.14 } } } }
             node { name: 'const' op: '_EagerConst' input: 'x:0'
                    attr { key: 'T' value { type: DT_FLOAT } }}"""
              )
              return importer.import_graph_def(
                  graph_def,
                  input_map={"x:0": x},
                  return_elements=["const"],
                  name="import",
              )[0].outputs[0]
  
          return control_flow_ops.vectorized_map(
              vec_fn,
              constant_op.constant([1.0, 2.0]),
              fallback_to_while_loop=False,
          )
  
      self.assertAllClose([1.0, 2.0], f_using_eagerconst())
  
imports: from absl.testing import parameterized
  import numpy
  from google.protobuf import text_format
  from tensorflow.core.framework import graph_pb2
  from tensorflow.python.eager import def_function
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import flexible_dtypes
  from tensorflow.python.framework import importer
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import tensor
  from tensorflow.python.framework import tensor_util
  from tensorflow.python.framework import test_util
  from tensorflow.python.framework.weak_tensor import WeakTensor
  from tensorflow.python.ops import gradients_impl
  from tensorflow.python.ops import weak_tensor_ops
  from tensorflow.python.ops import weak_tensor_test_util
  from tensorflow.python.ops.parallel_for import control_flow_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 15 for calling the WeakTensorConstantOpTest obj's underlying member method code with example usage: obj.test_eager_const_pfor() and returns: control_flow_ops, importer