code: def make_initializer(self, init_source, vals):
      if init_source == "textfile":
          file = os.path.join(
              self.get_temp_dir(), "text_file_initializer"
          )
          with open(file, "w") as f:
              f.write("\n".join(str(v) for v in vals) + "\n")
          return lookup_ops.TextFileInitializer(
              filename=file,
              key_dtype=dtypes.int64,
              key_index=lookup_ops.TextFileIndex.LINE_NUMBER,
              value_dtype=dtypes.int64,
              value_index=lookup_ops.TextFileIndex.WHOLE_LINE,
          )
      elif init_source == "keyvaluetensor":
          keys_tensor = constant_op.constant(
              list(range(len(vals))), dtype=dtypes.int64
          )
          vals_tensor = constant_op.constant(vals, dtype=dtypes.int64)
          return lookup_ops.KeyValueTensorInitializer(
              keys_tensor, vals_tensor
          )
      else:
          raise ValueError("Unrecognized init_source: " + init_source)
  
imports: import copy
  import os
  from absl.testing import parameterized
  from tensorflow.python.compat import v2_compat
  from tensorflow.python.data.ops import dataset_ops
  from tensorflow.python.distribute import combinations
  from tensorflow.python.distribute import device_util
  from tensorflow.python.distribute import multi_process_runner
  from tensorflow.python.distribute import multi_worker_test_base
  from tensorflow.python.distribute import parameter_server_strategy_v2
  from tensorflow.python.distribute import ps_values
  from tensorflow.python.distribute.coordinator import cluster_coordinator
  from tensorflow.python.distribute.coordinator import coordinator_context
  from tensorflow.python.eager import def_function
  from tensorflow.python.eager import test
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import tensor_spec
  from tensorflow.python.module import module
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import lookup_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.saved_model import load
  from tensorflow.python.saved_model import save
label_desc: Use image node_id 3 for calling the DistributedTableTest obj's underlying member method code with example usage: obj.make_initializer(init_source, vals) and returns: lookup_ops, lookup_ops