def METHOD_NAME(
        value: Any,
        name: str = None,
        default: Optional[Tuple[Number, Number]] = UNDEFINED
) -> Optional[Tuple[Number, Number]]:
    if isinstance(value, (float, int)):
        x, y = value, value
        return _to_int_or_float(x), _to_int_or_float(y)
    elif value is not None:
        x, y = value
        return _to_int_or_float(x), _to_int_or_float(y)
    elif default != UNDEFINED:
        return default
    else:
        assert_given(name, 'name')
        raise ValueError(f'{name} must be a number'
                         f' or a sequence of two numbers')