code: def get_pytext_home():
      internal_home = os.path.realpath(os.path.join(__file__, "../../"))
      oss_home = os.path.realpath(os.path.join(__file__, "../../../"))
      default_home = ""
      # use tests as anchor which will always in PYTEXT_HOME/tests
      if PathManager.exists(os.path.join(internal_home, "tests")):
          default_home = internal_home
      elif PathManager.exists(os.path.join(oss_home, "tests")):
          default_home = oss_home
      else:
          # when PyText is used as a module and packed as part of a single file X
          # __file__ will be path of X instead of path.py
          # in these case, PYTEXT_HOME will be the parent folder of X
          default_home = os.path.dirname(__file__)
      pytext_home = os.environ.get("PYTEXT_HOME", default_home)
      return pytext_home
  
imports: import os
  from pytext.utils.file_io import PathManager
label_desc: Use image node_id 1 for calling a global function with example usage: get_pytext_home() and returns: pytext_home