code: def spark_conf_path() -> Optional[str]:
      try:
          from pyspark.find_spark_home import (
              _find_spark_home,
          )  # pylint: disable=import-outside-toplevel
      except ImportError:
          return None
      return os.path.join(
          _find_spark_home(), "conf", "spark-defaults.conf"
      )
  
file_path: hail/hail/python/hailtop/aiocloud/aiogoogle/user_config.py
imports: from typing import Optional, List, Union, Tuple
  import os
  import warnings
  from jproperties import Properties
  from enum import Enum
  from dataclasses import dataclass
  from hailtop.config.user_config import configuration_of
  from hailtop.config.variables import ConfigVariable
label_desc: Use image node_id 2 for calling a global function with example usage: spark_conf_path() and returns: os, None