code: def read_summarize_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)
              if "idx" not in js:
                  js["idx"] = idx
              code = " ".join(js["code_tokens"]).replace("\n", " ")
              code = " ".join(code.strip().split())
              nl = " ".join(js["docstring_tokens"]).replace("\n", "")
              nl = " ".join(nl.strip().split())
              examples.append(
                  Example(
                      idx=idx,
                      source=code,
                      target=nl,
                  )
              )
              if idx + 1 == data_num:
                  break
      return examples
  
imports: import json
label_desc: Use image node_id 8 for calling a global function with example usage: read_summarize_examples(filename, data_num) and returns: examples