def METHOD_NAME(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)