code: def _get_preprocessing_fn_asset_table(asset_file):
      def construct_table(asset_path):
          initializer = tf.lookup.TextFileInitializer(
              asset_path,
              key_dtype=tf.string,
              key_index=tf.lookup.TextFileIndex.WHOLE_LINE,
              value_dtype=tf.int64,
              value_index=tf.lookup.TextFileIndex.LINE_NUMBER,
          )
          return tf.lookup.StaticHashTable(
              initializer, default_value=-1
          )
  
      def preprocessing_fn(inputs):
          (
              output,
              unused_table_size,
          ) = tf_utils.construct_and_lookup_table(
              construct_table, asset_file, inputs["input"]
          )
          return {"output": output}
  
      return preprocessing_fn
  
imports: import os
  import shutil
  import tempfile
  import numpy
  import tensorflow
  from tensorflow_transform import graph_context
  from tensorflow_transform import impl_helper
  from tensorflow_transform import tf_utils
  from tensorflow_transform import test_case
  from tensorflow_transform.py_func.api import apply_pyfunc
  from tensorflow_transform.saved import constants
  from tensorflow_transform.saved import saved_transform_io
  from tensorflow_transform.saved import saved_transform_io_v2
  from tensorflow.core.protobuf import meta_graph_pb2
  from tensorflow.python.lib.io import file_io
  from tensorflow.python.ops import script_ops
label_desc: Use image node_id 1 for calling a global function with example usage: _get_preprocessing_fn_asset_table(asset_file) and returns: preprocessing_fn, tf, dict