code: def _get_sub_home(directory):
      home = os.path.join(_get_seg_home(), directory)
      if not os.path.exists(home):
          os.makedirs(home, exist_ok=True)
      return home
  
imports: import os
  from paddleseg.utils import logger
label_desc: Use image node_id 3 for calling a global function with example usage: _get_sub_home(directory) and returns: home