docstr: The function is used to convert the name of vsphere obj to ID
docstr_tok: ["The","function","is","used","to","convert","the","name","of","vsphere","obj","to","ID"]
code: def name_to_id(self, vimtype, name):
      """
      The function is used to convert the name of vsphere obj to ID
      """
      obj = self.get_pyvmomi_obj(vimtype, name)
      return obj._moId
  
imports: import atexit
  import logging
  import ssl
  import time
  from enum import Enum
  from pyVim.connect import Disconnect, SmartStubAdapter, VimSessionOrientedStub
  from pyVim.task import WaitForTask
  from pyVmomi import vim, vmodl
  from ray.autoscaler._private.vsphere.utils import Constants, is_ipv4, singleton_client
label_desc: Use image node_id 7 for calling the PyvmomiSdkProvider obj's underlying member method code with example usage: obj.name_to_id(vimtype, name) and returns: obj