def _get_vm_ref_from_name(session, vm_name):
    vms = session._call_method(vim_util, "get_objects",
                "VirtualMachine", ["name"])
    return _get_object_from_results(session, vms, vm_name,
                                    _get_object_for_value)
format str to posix.
dataset/ETHPy150Open openstack/nova/nova/virt/vmwareapi/vm_util.py/_get_vm_ref_from_name--crossover with--dataset/ETHPy150Open GoogleCloudPlatform/appengine-opencv-sudoku-python/cloudstorage/common.py/dt_str_to_posix