code: def get_tf_keras_io_names(model):
      """
      Utility function to get tf.keras inputs/outputs names from a tf.keras model.
  
      Parameter
      ---------
      model: tf.keras.Model
      """
      input_names, output_names = [], []
      for i in model.inputs:
          input_names.append(i.name.split(":")[0])
      for o in model.outputs:
          output_names.append(o.name.split(":")[0].split("/")[-1])
      return input_names, output_names
  
file_path: turicreate/src/external/coremltools_wrap/coremltools/coremltools/converters/mil/frontend/tensorflow/test/testing_utils.py
imports: import six
  from coremltools import TensorType
  import pytest
  from coremltools.converters.mil.testing_utils import compare_shapes, compare_backend
  from coremltools.converters.mil.testing_reqs import converter
  from tensorflow.python.framework import dtypes
  import tempfile
  import os
  from tensorflow.python.tools.freeze_graph import freeze_graph
label_desc: Use image node_id 2 for calling a global function with example usage: get_tf_keras_io_names(model) and returns: input_names,  output_names