def is_group_field(field):
    """Determines whether the given field is a group field.

    Args:
        field: a :class:`fiftyone.core.fields.Field`

    Returns:
        True/False
    """
    return isinstance(field, fof.EmbeddedDocumentField) and issubclass(
        field.document_type, Group
    )
Determines whether the given field is a group field.

    Args:
        field: a :class:`fiftyone.core.fields.Field`

    Returns:
        True/False
    
fiftyone/core/groups.py