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 _initialize_scope_node(self, source_node):
      scope_node = self._graph.model.node.add()
      scope_node.name = source_node.name + "_scope"
      scope_node.op = "Scope"
      scope_node = IRGraphNode(scope_node)
  
      kwargs = {}
      kwargs["scope"] = source_node.get_attr("scope")
  
      if "data_format" in source_node.layer.attr:
          kwargs["data_format"] = source_node.get_attr("data_format")
  
      if "_output_shapes" in source_node.layer.attr:
          scope_node.layer.attr["_output_shapes"].MergeFromString(
              source_node.layer.attr[
                  "_output_shapes"
              ].SerializeToString()
          )
      if "value" in source_node.layer.attr:
          kwargs["value"] = source_node.get_attr("value")
      # RNN-related attrs.
      if "input_size" in source_node.layer.attr:
          kwargs["input_size"] = source_node.get_attr("input_size")
      if "num_units" in source_node.layer.attr:
          kwargs["num_units"] = source_node.get_attr("num_units")
      if "fill_size" in source_node.layer.attr:
          kwargs["fill_size"] = source_node.get_attr("fill_size")
      if "fill_value" in source_node.layer.attr:
          kwargs["fill_value"] = source_node.get_attr("fill_value")
  
      assign_IRnode_values(scope_node.layer, kwargs)
      return scope_node
  
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 10 for calling the Folder obj's underlying member method code with example usage: obj._initialize_scope_node(source_node) and returns: scope_node