code: def _get_path(args_path: Optional[str]) -> str:
      
      env_path = os.getenv(PATH_ENVIRONMENT_VARIABLE)
      for path, source in ((args_path, 'arg'),
                           (env_path, 'env')):
          if not path:
              LOG.debug(f"config.load: skipping {source} (path None)")
              continue
          else:
              LOG.debug(f"config.load: using config path {path} from {source}")
              return path
      return DEFAULT_PATH
docs: Find the valid path from args then env then default