code: def _ensure_cwd_is_fairlearn_root_dir():
      # To ensure we're in the right directory that there's a fairlearn directory inside the
      # current working directory as well as the presence of a README.rst file.
      if not os.path.exists(
          os.path.join(os.getcwd(), "fairlearn")
      ) or not os.path.exists(os.path.join(os.getcwd(), "README.rst")):
          raise Exception(
              "Please run this from the fairlearn root directory. "
              "Current directory: {}".format(os.getcwd())
          )
  
imports: import logging
  import os
label_desc: Use image node_id 1 for calling a global function with example usage: _ensure_cwd_is_fairlearn_root_dir() without return types