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 _check_and_get_input_params(self, scope_node):
      def wipe_in_egde_idx(in_name, node):
          for idx, in_edge in enumerate(node.in_edges):
              if in_name in in_edge:
                  node.in_edges[idx] = in_edge.split(":")[0]
          node.in_edges = sorted(
              set(node.in_edges), key=node.in_edges.index
          )
  
      input_params = list()
      in_name_dict = collections.OrderedDict()
      for in_name in scope_node.in_edges:
          if (
              self._graph.get_node(in_name).variable_name
              not in input_params
          ):
              input_params.append(
                  self._graph.get_node(in_name).variable_name
              )
          if ":" not in in_name:
              continue
  
          if in_name_dict.get(in_name.split(":")[0], None):
              in_name_dict[in_name.split(":")[0]].add(
                  in_name.split(":")[1]
              )
          else:
              in_name_dict[in_name.split(":")[0]] = set(
                  [in_name.split(":")[1]]
              )
  
      for in_name, subscript_set in in_name_dict.items():
          # the input parameter shoule be sliced when call func.
          if len(subscript_set) == 1:
              # modify the in_edges in scope inner nodes. decline the :idx.
              for n in scope_node.topology_list:
                  n = self._graph.get_node(n)
                  wipe_in_egde_idx(in_name, n)
          else:  # >2
              wipe_in_egde_idx(in_name, scope_node)
  
      return input_params
  
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 8 for calling the Folder obj's underlying member method code with example usage: obj._check_and_get_input_params(scope_node) and returns: input_params