code: def _get_scim_enabled() -> Optional[bool]:
      global _scim_enabled
  
      if _scim_enabled is None:
          try:
              info = api.get(
                  conf.make_master_url(), "info", authenticated=False
              ).json()
              _scim_enabled = bool(
                  info.get("sso_providers")
                  and len(info["sso_providers"]) > 0
              )
          except (errors.APIException, errors.MasterNotFoundException):
              pass
  
      return _scim_enabled
  
imports: import uuid
  from typing import Callable, Optional, Sequence, TypeVar
  import pytest
  from determined.common import api
  from determined.common.api import authentication, bindings, certs, errors
  from tests import config
label_desc: Use image node_id 19 for calling a global function with example usage: _get_scim_enabled() and returns: _scim_enabled