@staticmethod
def equal(arg_name, arg_value, cond_str, cond):
    """Judging valid value."""
    if not cond:
        raise ValueError(
            f'The `{arg_name}` must be {cond_str}, but got {arg_value}.')
