code: def get_examples_from_docstring(docstr):
      """
      Extracts all runnable python code from the examples
      in docstrings; returns a list of lines.
      """
      examples = doctest.DocTestParser().get_examples(docstr)
      return [
          f"    {l}" for e in examples for l in e.source.splitlines()
      ]
  
file_path: pytorch/test/test_type_hints.py
imports: import unittest
  from torch.testing._internal.common_utils import TestCase, run_tests, set_cwd
  import tempfile
  import torch
  import doctest
  import os
  import inspect
  from pathlib import Path
label_desc: Use image node_id 1 for calling a global function with example usage: get_examples_from_docstring(docstr) and returns: unknown