docstr: This function will list all the attached tags of the vSphere object, convert
  the string formatted tag to k,v formatted. Then compare the attached tags to
  the ones in the filters.
  
  tag_filters will be a dict like {"tag_key1": "val1", "tag_key2": "val2"}
  vm_id will be the vSphere vm object id
  
  Return all the matched tags and all the tags the vSphere object has.
  vsphere_tag_to_kv_pair will ignore the tags not convertable to k,v pairs.
docstr_tok: ["This","function","will","list","all","the","attached","tags","of","the","vSphere","object",",","convert","the","string","formatted","tag","to","k",",","v","formatted",".","Then","compare","the","attached","tags","to","the","ones","in","the","filters",".","tag_filters","will","be","a","dict","like","{","``","tag_key1","''",":","``","val1","''",",","``","tag_key2","''",":","``","val2","''","}","vm_id","will","be","the","vSphere","vm","object","id","Return","all","the","matched","tags","and","all","the","tags","the","vSphere","object","has",".","vsphere_tag_to_kv_pair","will","ignore","the","tags","not","convertable","to","k",",","v","pairs","."]
code: def get_matched_tags(self, tag_filters, vm_id):
      """
      This function will list all the attached tags of the vSphere object, convert
      the string formatted tag to k,v formatted. Then compare the attached tags to
      the ones in the filters.
  
      tag_filters will be a dict like {"tag_key1": "val1", "tag_key2": "val2"}
      vm_id will be the vSphere vm object id
  
      Return all the matched tags and all the tags the vSphere object has.
      vsphere_tag_to_kv_pair will ignore the tags not convertable to k,v pairs.
      """
      matched_tags = {}
      all_tags = {}
  
      for tag_id in self.list_vm_tags(vm_id):
          vsphere_vm_tag = self.vsphere_sdk_client.tagging.Tag.get(
              tag_id=tag_id
          ).name
          tag_key_value = vsphere_tag_to_kv_pair(vsphere_vm_tag)
          if tag_key_value:
              tag_key, tag_value = tag_key_value[0], tag_key_value[1]
  
              if (
                  tag_key in tag_filters
                  and tag_value == tag_filters[tag_key]
              ):
                  matched_tags[tag_key] = tag_value
  
              all_tags[tag_key] = tag_value
  
      return matched_tags, all_tags
  
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 12 for calling the VsphereSdkProvider obj's underlying member method code with example usage: obj.get_matched_tags(tag_filters, vm_id) and returns: matched_tags,  all_tags