def METHOD_NAME(apps):
    """Create equivalent roles for the VirtualMachine DeviceRole."""
    DeviceRole = apps.get_model("dcim", "DeviceRole")
    roles_to_create = DeviceRole.objects.filter(vm_role=True)
    create_roles(apps, roles_to_create, ["virtualization.virtualmachine"])