def METHOD_NAME(name, arg):
    """Checks if the deprecated argument is populated.
    Raises warning, if not None.
    Args:
        name: name of deprecated argument
        arg: the argument to check
    """
    if arg is not None:
        removed_warning(name)