docstr: This function will get the vm object by vSphere SDK with the vm id
docstr_tok: ["This","function","will","get","the","vm","object","by","vSphere","SDK","with","the","vm","id"]
code: def get_vsphere_sdk_vm_obj(self, vm_id):
      """
      This function will get the vm object by vSphere SDK with the vm id
      """
      vms = self.vsphere_sdk_client.vcenter.VM.list(
          VM.FilterSpec(vms={vm_id})
      )
      if len(vms) == 0:
          logger.warning(
              "VM with name ({}) not found by vSphere sdk".format(vm_id)
          )
          return None
      return vms[0]
  
imports: import logging
  import time
  import uuid
  from threading import RLock
  import com.vmware.vapi.std.errors_client
  import requests
  from com.vmware.cis.tagging_client import CategoryModel
  from com.vmware.content.library_client import Item
  from com.vmware.vapi.std.errors_client import Unauthenticated
  from com.vmware.vapi.std_client import DynamicID
  from com.vmware.vcenter.ovf_client import DiskProvisioningType, LibraryItem
  from com.vmware.vcenter.vm.hardware_client import Cpu, Memory
  from com.vmware.vcenter.vm_client import Power
  from com.vmware.vcenter_client import VM, Host, ResourcePool
  from vmware.vapi.vsphere.client import create_vsphere_client
  from ray.autoscaler._private.vsphere.utils import Constants, singleton_client
  from ray.autoscaler.tags import TAG_RAY_CLUSTER_NAME
label_desc: Use image node_id 4 for calling the VsphereSdkProvider obj's underlying member method code with example usage: obj.get_vsphere_sdk_vm_obj(vm_id) and returns: vms, None