code: def check_match_scope(self, match_result, scope_name):
      ops = match_result._pattern_to_op.values()
  
      for op in ops:
          op_name_splits = op.name.split("/")
          if len(op_name_splits) < 2:
              return False
          if re.sub(r"(_\d+)*$", "", op_name_splits[-2]) != scope_name:
              if len(op_name_splits) > 2:
                  if (
                      re.sub(r"(_\d+)*$", "", op_name_splits[-3])
                      != scope_name
                  ):
                      return False
              else:
                  return False
      return True
  
file_path: MMdnn/mmdnn/conversion/tensorflow/rewriter/gru_rewriter.py
imports: from mmdnn.conversion.rewriter.rewriter import UnitRewriterBase
  import numpy
  import re
label_desc: Use image node_id 5 for calling the GRURewriter obj's underlying member method code with example usage: obj.check_match_scope(match_result, scope_name) and returns: True, False, False, False