def METHOD_NAME(array: 'ndarray', name: str, units: str) -> None:
    """
    Validates that the array is an numpy.ndarray and that the name is
    of type str. Raises TypeError or ValueError if this not the case.
    """
    if not isinstance(name, str):
        raise TypeError('The name must always be a str.')
    if not isinstance(array, np.ndarray):
        raise TypeError('The input array must always be a numpy array')
    try:
        array.astype(float)
    except ValueError as exc:
        raise TypeError('The input array must only contain floats') from exc
    if not isinstance(units, str):
        raise TypeError('The units must always be a str.')