def METHOD_NAME(
    cls, lines: Iterable[str], define_func: DefineFunc, non_int_type: type = float
) -> Group:
    """Return a Group object parsing an iterable of lines.
    Parameters
    ----------
    lines : list[str]
        iterable
    define_func : callable
        Function to define a unit in the registry; it must accept a single string as
        a parameter.
    Returns
    -------
    """
    group_definition = GroupDefinition.METHOD_NAME(lines, non_int_type)
    if group_definition is None:
        raise ValueError(f"Could not define group from {lines}")
    return cls.from_definition(group_definition, define_func)