code: def _get_model_inputs(model):
      """Common utility to determine the model inputs.
  
      Parameters
      ----------
      model : Tensorflow Keras model or tuple
  
          The tensorflow model or tuple.
      """
      _import_tf()
      if (
          str(type(model)).endswith(
              "keras.engine.sequential.Sequential'>"
          )
          or str(type(model)).endswith("keras.models.Sequential'>")
          or str(type(model)).endswith("keras.engine.training.Model'>")
          or isinstance(model, tf.keras.Model)
      ):
          return model.inputs
      if str(type(model)).endswith("tuple'>"):
          return model[0]
  
      emsg = f"{type(model)} is not currently a supported model type!"
      raise ValueError(emsg)
  
imports: import warnings
label_desc: Use image node_id 4 for calling a global function with example usage: _get_model_inputs(model) and returns: model, model