code: def get_meta_graph_def(saved_model_dir, tag_set):
      """Validate saved_model and extract MetaGraphDef.
  
      Args:
        saved_model_dir: saved_model path to convert.
        tag_set: Set of tag(s) of the MetaGraphDef to load.
  
      Returns:
        The meta_graph_def used for tflite conversion.
  
      Raises:
        ValueError: No valid MetaGraphDef for given tag_set.
      """
      with session.Session(graph=ops.Graph()) as sess:
          return loader.load(sess, tag_set, saved_model_dir)
  
file_path: tensorflow-upstream/tensorflow/lite/python/convert_saved_model.py
imports: from tensorflow.lite.python import util
  from tensorflow.lite.python.convert_phase import Component
  from tensorflow.lite.python.convert_phase import convert_phase
  from tensorflow.lite.python.convert_phase import SubComponent
  from tensorflow.python.client import session
  from tensorflow.python.framework import ops
  from tensorflow.python.platform import tf_logging
  from tensorflow.python.saved_model import constants
  from tensorflow.python.saved_model import loader
label_desc: Use image node_id 1 for calling a global function with example usage: get_meta_graph_def(saved_model_dir, tag_set) and returns: loader