code: def get_scheduler(
      cls,
      pyvmomi_sdk_provider,
      resource_pool_name,
      policy_name=Policy.ROUNDROBIN,
  ):
      if policy_name == Policy.ROUNDROBIN:
          return RoundRobinScheduler(
              pyvmomi_sdk_provider, resource_pool_name
          )
      raise RuntimeError(f"Unsupported schedule policy: {policy_name}")
  
file_path: ray/python/ray/autoscaler/_private/vsphere/scheduler.py
imports: import logging
  import threading
  from enum import Enum
  from pyVmomi import vim
label_desc: Use image node_id 1 for calling the SchedulerFactory obj's underlying member method code with example usage: obj.get_scheduler(cls, pyvmomi_sdk_provider, resource_pool_name, policy_name) and returns: RoundRobinScheduler