code: def _find_source_root(source_abs_path):
      # Note that READTHEDOCS* environment variable cannot be used, because they
      # are not set under the CI environment.
      global _source_root
      if _source_root is not None:
          return _source_root
  
      assert os.path.isfile(source_abs_path)
      dirname = os.path.dirname(source_abs_path)
      while True:
          parent = os.path.dirname(dirname)
          if os.path.basename(dirname) in _top_modules:
              _source_root = parent
              return _source_root
          if len(parent) == len(dirname):
              raise RuntimeError(
                  "Couldn't parse root directory from "
                  "source file: {}".format(source_abs_path)
              )
          dirname = parent
  
imports: import functools
  import inspect
  import os
  import pathlib
  import sys
  import typing
  import re
  from subprocess import check_output
  import plotly.io
  from plotly.io._sg_scraper import plotly_sg_scraper
  import deepchecks
  from deepchecks import vision
  from deepchecks.utils.strings import to_snake_case
label_desc: Use image node_id 4 for calling a global function with example usage: _find_source_root(source_abs_path) and returns: _source_root, _source_root