code: def read_defect_examples(filename, data_num):
      """Read examples from filename."""
      examples = []
      with open(filename, encoding="utf-8") as f:
          for idx, line in enumerate(f):
              line = line.strip()
              js = json.loads(line)
  
              code = " ".join(js["func"].split())
              examples.append(
                  Example(
                      idx=js["idx"], source=code, target=js["target"]
                  )
              )
              if idx + 1 == data_num:
                  break
      return examples
  
imports: import json
label_desc: Use image node_id 9 for calling a global function with example usage: read_defect_examples(filename, data_num) and returns: examples