class_docstr: Handles a SavedModel exported using TF 1.x APIs in TF 2.x.
class_docstr_tok: ["Handles","a","SavedModel","exported","using","TF","1.x","APIs","in","TF","2.x","."]
docstr: Returns a map from string to `tf.Tensor` or `CompositeTensor`.
docstr_tok: ["Returns","a","map","from","string","to","`","tf.Tensor","`","or","`","CompositeTensor","`","."]
code: def _format_input_map_as_tensors(self, input_map):
      """Returns a map from string to `tf.Tensor` or `CompositeTensor`."""
      result = {}
      for key, value in input_map.items():
          if isinstance(
              value, (tf.Tensor, composite_tensor.CompositeTensor)
          ):
              result[key] = value
          else:
              result[key] = tf.convert_to_tensor(value)
      return result
  
imports: from typing import Any, Dict, Iterable, Mapping, Tuple, Union
  import tensorflow
  from tensorflow_transform import annotators
  from tensorflow_transform import common_types
  from tensorflow_transform import graph_tools
  from tensorflow_transform import tf2_utils
  from tensorflow_transform import tf_utils
  from tensorflow_transform.py_func import pyfunc_helper
  from tensorflow_transform.saved import constants
  from tensorflow_transform.saved import saved_model_loader
  from tensorflow_transform.saved import saved_transform_io
  from tensorflow.python.eager import function
  from tensorflow.python.eager import wrap_function
  from tensorflow.python.framework import composite_tensor
  from tensorflow.python.ops import lookup_ops
  from tensorflow.python.util import object_identity
label_desc: Use image node_id 11 for calling the SavedModelLoader obj's underlying member method code with example usage: obj._format_input_map_as_tensors(input_map) and returns: result