def _evaluate_args(params_name: list, params_index: list):
    """
    This method throws an exception if both of `params_name` and `params_index` are provided.
    :param params_name:
    :param params_index:

    """
    has_param_name_in_arg = (params_name is not None) and (len(params_name) > 0)
    has_param_index_in_arg = (params_index is not None) and (len(params_index) > 0)

    if has_param_name_in_arg and has_param_index_in_arg:
        raise ValueError(
            """
            One and only one of the two arguments (params_name_list, params_index) must
            be provided.
            """
        )

    return True