def METHOD_NAME(content):
    """Get the vm names from the container view.
    :param vm_container_view: The VM container view.
    :returns: list of vm names.
    """
    vm_names = []
    visit_folders = vmodl.query.PropertyCollector.TraversalSpec(
        name="visitFolders", type=vim.Folder, path="childEntity", skip=False
    )
    visit_folders.selectSet.extend(
        [
            vmodl.query.PropertyCollector.SelectionSpec(name="visitFolders"),
            vmodl.query.PropertyCollector.SelectionSpec(name="dcToVmFolder"),
        ]
    )
    dc_to_vm_folder = vmodl.query.PropertyCollector.TraversalSpec(
        name="dcToVmFolder", type=vim.Datacenter, path="vmFolder", skip=False
    )
    dc_to_vm_folder.selectSet.extend(
        [vmodl.query.PropertyCollector.SelectionSpec(name="visitFolders")]
    )
    filter_spec = vmodl.query.PropertyCollector.FilterSpec(
        objectSet=[
            vmodl.query.PropertyCollector.ObjectSpec(
                obj=content.rootFolder,
                skip=False,
                selectSet=[visit_folders, dc_to_vm_folder],
            ),
        ],
        propSet=[
            vmodl.query.PropertyCollector.PropertySpec(
                all=False,
                type=vim.VirtualMachine,
                pathSet=["name"],
            ),
        ],
    )
    objects = retrieve_properties(content, [filter_spec])
    for object_content in objects:
        vm_names.append(object_content.propSet[0].val)
    return vm_names