def METHOD_NAME(transform: Union[dict, Callable]) -> str:
    """get the type of the transform."""
    if isinstance(transform, dict) and 'type' in transform:
        return transform['type']
    elif callable(transform):
        return transform.__repr__().split('(')[0]
    else:
        raise TypeError