class_docstr: Load graphs and restore variable values from a `SavedModel`.
docstr: Return MetaGraphDef with the exact specified tags.
  
  Args:
    tags: A list or set of string tags that identify the MetaGraphDef.
  
  Returns:
    MetaGraphDef with the same tags.
  
  Raises:
    RuntimeError: if no metagraphs were found with the associated tags.
docstr_tok: ["Return","MetaGraphDef","with","the","exact","specified","tags",".","Args",":","tags",":","A","list","or","set","of","string","tags","that","identify","the","MetaGraphDef",".","Returns",":","MetaGraphDef","with","the","same","tags",".","Raises",":","RuntimeError",":","if","no","metagraphs","were","found","with","the","associated","tags","."]
code: def get_meta_graph_def_from_tags(self, tags):
      """Return MetaGraphDef with the exact specified tags.
  
      Args:
        tags: A list or set of string tags that identify the MetaGraphDef.
  
      Returns:
        MetaGraphDef with the same tags.
  
      Raises:
        RuntimeError: if no metagraphs were found with the associated tags.
      """
      found_match = False
      meta_graph_def_to_load = None
      available_tags = []
      for meta_graph_def in self._saved_model.meta_graphs:
          available_tags.append(set(meta_graph_def.meta_info_def.tags))
          if set(meta_graph_def.meta_info_def.tags) == set(tags):
              meta_graph_def_to_load = meta_graph_def
              found_match = True
              break
  
      if not found_match:
          raise RuntimeError(
              f"MetaGraphDef associated with tags {str(tags).strip('[]')} "
              "could not be found in SavedModel, with available tags "
              f"'{available_tags}'. To inspect available tag-sets in"
              " the SavedModel, please use the SavedModel CLI: `saved_model_cli`."
          )
      return meta_graph_def_to_load
  
imports: import os
  import sys
  from google.protobuf import message
  from google.protobuf import text_format
  from tensorflow.core.framework import graph_debug_info_pb2
  from tensorflow.core.protobuf import meta_graph_pb2
  from tensorflow.core.protobuf import saved_model_pb2
  from tensorflow.python.framework import ops
  from tensorflow.python.lib.io import file_io
  from tensorflow.python.ops import variables
  from tensorflow.python.platform import tf_logging
  from tensorflow.python.saved_model import constants
  from tensorflow.python.saved_model import path_helpers
  from tensorflow.python.saved_model import signature_def_utils
  from tensorflow.python.saved_model import utils_impl
  from tensorflow.python.saved_model.pywrap_saved_model import metrics
  from tensorflow.python.training import saver
  from tensorflow.python.util import compat
  from tensorflow.python.util import deprecation
  from tensorflow.python.util.tf_export import tf_export
label_desc: Use image node_id 5 for calling the SavedModelLoader obj's underlying member method code with example usage: obj.get_meta_graph_def_from_tags(tags) and returns: meta_graph_def_to_load