code: def get_public_overridable_apis(
      pytorch_root="/raid/rzou/pt/debug-cpu",
  ):
      results = {}
      all_overridable_apis = set(
          torch.overrides.get_testing_overrides().keys()
      )
      for module, module_name, src in public_docs:
          with open(f"{pytorch_root}/{src}") as f:
              lines = f.readlines()
          # APIs eitehr begin with 4 spaces or ".. autofunction::"
          api_lines1 = [
              line.strip() for line in lines if line.startswith(" " * 4)
          ]
          api_lines2 = [
              line.strip()[len(".. autofunction:: ") :]
              for line in lines
              if line.startswith(".. autofunction::")
          ]
          lines = api_lines1 + api_lines2
          lines = [
              line[7:] if line.startswith("Tensor.") else line
              for line in lines
          ]
          lines = [line for line in lines if hasattr(module, line)]
          for line in lines:
              api = getattr(module, line)
              if api in all_overridable_apis:
                  results[f"{module_name}.{line}"] = api
      return results
  
imports: import torch
  import copy
  from torch.testing._internal.common_methods_invocations import op_db
  from functorch_additional_op_db import additional_op_db
  from enum import Enum
  import torch._functorch.top_operators_github_usage
  import pprint
  import unittest
  import enum
  from torch.testing._internal.common_device_type import toleranceOverride
  import test_ops
  import test_vmap
label_desc: Use image node_id 1 for calling a global function with example usage: get_public_overridable_apis(pytorch_root) and returns: results