code: def _concrete_fn_from_tf_keras_or_h5(keras_model):
      if isinstance(keras_model, _tf.keras.Model):
          input_signature = _saving_utils.model_input_signature(
              keras_model, keep_original_batch_size=True
          )
          fn = _saving_utils.trace_model_call(
              keras_model, input_signature
          )
      else:
          keras_model = _tf.keras.models.load_model(keras_model)
          input_signature = _saving_utils.model_input_signature(
              keras_model, keep_original_batch_size=True
          )
          fn = _saving_utils.trace_model_call(
              keras_model, input_signature
          )
      return [fn.get_concrete_function()]
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import logging
  import os.path
  from six import string_types
  from tqdm import tqdm
  import tensorflow
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework.convert_to_constants import convert_variables_to_constants_v2
  from tensorflow.python.framework.function_def_to_graph import function_def_to_graph
  from tensorflow.python.keras.saving import saving_utils
  from tensorflow.lite.python.util import run_graph_optimizations
  from tensorflow.lite.python.util import get_grappler_config
  from .converter import TF2Converter
  from coremltools.converters.mil.frontend.tensorflow.basic_graph_ops import fill_outputs
  from coremltools.converters.mil.frontend.tensorflow.tf_graph_pass import constant_propagation, remove_variable_nodes, tensor_array_resource_removal, insert_get_tuple, delete_disconnected_nodes, fuse_dilation_conv
  from coremltools.converters.mil.frontend.tensorflow2.tf_graph_pass import flatten_sub_graph_namespaces, rewrite_control_flow_functions
  from coremltools.converters.mil.frontend.tensorflow.tfssa import NetworkEnsemble, SSAFunction
  from coremltools.converters.mil.frontend.tensorflow.parsed_tf_node import ParsedTFNode
  from coremltools.converters.mil.frontend.tensorflow.load import TFLoader
label_desc: Use image node_id 7 for calling the TF2Loader obj's underlying member method code with example usage: obj._concrete_fn_from_tf_keras_or_h5(keras_model) and returns: list