code: def _examples_for_test(test_file):
      _register_doctest_options()
      with open(test_file) as f:
          test_file_str = f.read()
      return doctest.DocTestParser().get_examples(
          test_file_str, name=test_file
      )
  
file_path: guildai/tools.py
imports: import argparse
  import doctest
  import glob
  import os
  import subprocess
  import sys
  import tempfile
label_desc: Use image node_id 6 for calling a global function with example usage: _examples_for_test(test_file) and returns: doctest