class_docstr: GraphStream is a class for delta automatical optimization
code: def __run(self):
      graph_defs = []
      for pattern_name in RegistPattern.Patterns().keys():
          for graph_def in RegistPattern.get_patterns(pattern_name):
              delta_graph = DeltaGraph(pb_model=graph_def)
              RegisterPattern(
                  pattern_name,
                  delta_graph,
                  self.__hint_op_type(pattern_name),
              )
      if pattern_name not in RegistPattern.Patterns().keys():
          raise ValueError(
              "Err: there isn't any pattern invoked within scope of GraphStream."
          )
      self.__optimizer = AutoOptimizer(self.__delta_graph_original)
      # run optimizer automatically
      self.__optimizer.run()
  
file_path: delta/gcompiler/python/delta_infer/optimizer.py
imports: from __future__ import absolute_import, division, print_function
  import os
  import sys
  from .subgraphs import *
  from .cpp import DeltaGraph, AutoOptimizer, RegisterPattern
label_desc: Use image node_id 2 for calling the GraphStream obj's underlying member method code with example usage: obj.__run() without return types