code: def match_sublist(the_list, to_match):
      len_to_match = len(to_match)
      matched_list = list()
      for index in range(len(the_list) - len_to_match + 1):
          if to_match == the_list[index : index + len_to_match]:
              matched_list += [(index, index + len_to_match)]
      return matched_list
  
file_path: DeepKE/example/llm/InstructKGC/kg2instruction/convert/random_sort.py
imports: import sys
  import random
  from convert.sampler import get_positive_type_role
label_desc: Use image node_id 1 for calling a global function with example usage: match_sublist(the_list, to_match) and returns: matched_list