code: def read_clone_examples(filename, data_num):
      """Read examples from filename."""
      index_filename = filename
      url_to_code = {}
      with open(
          "/".join(index_filename.split("/")[:-1]) + "/data.jsonl"
      ) as f:
          for line in f:
              line = line.strip()
              js = json.loads(line)
              code = " ".join(js["func"].split())
              url_to_code[js["idx"]] = code
  
      data = []
      with open(index_filename) as f:
          idx = 0
          for line in f:
              line = line.strip()
              url1, url2, label = line.split("\t")
              if url1 not in url_to_code or url2 not in url_to_code:
                  continue
              if label == "0":
                  label = 0
              else:
                  label = 1
              data.append(
                  CloneExample(
                      url_to_code[url1],
                      url_to_code[url2],
                      label,
                      url1,
                      url2,
                  )
              )
              idx += 1
              if idx == data_num:
                  break
      return data
  
imports: import json
label_desc: Use image node_id 10 for calling a global function with example usage: read_clone_examples(filename, data_num) and returns: data