class_docstr: A floder to fold a graph' nodes which has same scope into one node.
class_docstr_tok: ["A","floder","to","fold","a","graph","'","nodes","which","has","same","scope","into","one","node","."]
code: def _get_scope_level_name_dict(self):
      scope_level_name = collections.OrderedDict()
      for node in self._graph.get_nodes():
          if not node.get_attr("scope"):
              continue
          for i, scope_name in enumerate(
              node.get_attr("scope").split("/")
          ):
              # decline the suffix number
              import re
  
              if re.search(r"\d", scope_name.split("_")[-1]):
                  scope_name = "_".join(scope_name.split("_")[:-1])
              if scope_name == "top":
                  continue
              if scope_level_name.get(i, None):
                  if scope_name not in scope_level_name[i]:
                      scope_level_name[i].append(scope_name)
              else:
                  scope_level_name[i] = list(
                      [scope_name]
                  )  # use list to keep sort.
  
      return scope_level_name
  
file_path: MMdnn/mmdnn/conversion/rewriter/folder.py
imports: from mmdnn.conversion.common.IR.IR_graph import *
  import sys
  import re
  import numpy
  import collections
label_desc: Use image node_id 4 for calling the Folder obj's underlying member method code with example usage: obj._get_scope_level_name_dict() and returns: scope_level_name