code: def _get_seg_home():
      if "SEG_HOME" in os.environ:
          home_path = os.environ["SEG_HOME"]
          if os.path.exists(home_path):
              if os.path.isdir(home_path):
                  return home_path
              else:
                  logger.warning(
                      "SEG_HOME {} is a file!".format(home_path)
                  )
          else:
              return home_path
      return os.path.join(_get_user_home(), ".paddleseg")
  
imports: import os
  from medicalseg.utils import logger
label_desc: Use image node_id 2 for calling a global function with example usage: _get_seg_home() and returns: os, home_path, home_path