def get_instance_type_by_flavor_id(flavor_id):
    """Retrieve instance type by flavor_id."""
    ctxt = context.get_admin_context()
    try:
        return db.instance_type_get_by_flavor_id(ctxt, flavor_id)
    except __HOLE__:
        raise exception.FlavorNotFound(flavor_id=flavor_id)
dataset/ETHPy150Open nii-cloud/dodai-compute/nova/compute/instance_types.py/get_instance_type_by_flavor_id