code: def _get_scheduler_type() -> Optional[bindings.v1SchedulerType]:
      global _scheduler_type
      if _scheduler_type is None:
          try:
              sess = determined_test_session()
              resourcePool = bindings.get_GetResourcePools(
                  sess
              ).resourcePools
              if not resourcePool:
                  raise ValueError(
                      "Resource Pool returned no value. Make sure the resource pool is set."
                  )
              _scheduler_type = resourcePool[0].schedulerType
          except (errors.APIException, errors.MasterNotFoundException):
              pass
      return _scheduler_type
  
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 11 for calling a global function with example usage: _get_scheduler_type() and returns: _scheduler_type