def is_field_cached(instance: models.Model, field: str) -> bool:
    "Checks if a field is cached in the model instance"
    return field in instance._state.fields_cache
Checks if a field is cached in the model instance
cvat/apps/engine/model_utils.py