def list_dvs(service_instance):
 return list_objects(service_instance, vim.DistributedVirtualSwitch)

def list_dvs ( service_instance ) : return list_objects ( service_instance , vim . DistributedVirtualSwitch )
returns a list of distributed virtual switches for the the specified host .