code: def parse_sm_config():
      
      sagemaker_config = "/opt/ml/input/config/hyperparameters.json"
      if os.path.exists(sagemaker_config):
          conf = {}
          conf["sagemaker_training_job_name"] = os.getenv('TRAINING_JOB_NAME')
          # Hyper-parameter searchs quote configs...
          for k, v in six.iteritems(json.load(open(sagemaker_config))):
              cast = v.strip('"')
              if os.getenv("WANDB_API_KEY") is None and k == "wandb_api_key":
                  os.environ["WANDB_API_KEY"] = cast
              else:
                  if re.match(r'^[-\d]+$', cast):
                      cast = int(cast)
                  elif re.match(r'^[-.\d]+$', cast):
                      cast = float(cast)
                  conf[k] = cast
          return conf
      else:
          return False
docs: Attempts to parse SageMaker configuration returning False if it can't find it