def get_field_metadata(field):
    """Returns a dict of editable metadata for the given field.

    Args:
        field: a :class:`Field`

    Returns:
        a dict of field metadata
    """
    metadata = {}
    for key in ("description", "info", "read_only"):
        value = getattr(field, key, None)
        if value is not None:
            metadata[key] = value

    return metadata
Returns a dict of editable metadata for the given field.

    Args:
        field: a :class:`Field`

    Returns:
        a dict of field metadata
    
fiftyone/core/fields.py