code: def _find_config(working_dir=None):
      """Gets project config on SageMaker Studio platforms, if it exists.
  
      Args:
          working_dir: the working directory to start looking.
  
      Returns:
          The project config path, if it exists. Otherwise None.
      """
      try:
          wd = Path(working_dir) if working_dir else Path.cwd()
  
          path = None
          while path is None and not wd.match("/"):
              candidate = wd / STUDIO_PROJECT_CONFIG
              if Path.exists(candidate):
                  path = candidate
              wd = wd.parent
  
          return path
      except Exception as e:  # pylint: disable=W0703
          logger.debug(
              "Could not find the studio project config. %s", e
          )
  
file_path: sagemaker-python-sdk/src/sagemaker/_studio.py
imports: from __future__ import absolute_import
  import json
  import logging
  from pathlib import Path
label_desc: Use image node_id 2 for calling a global function with example usage: _find_config(working_dir) and returns: path