def METHOD_NAME(self) -> None:
    """Check dimensions of arguments.
    """
    if not self.args[1].is_scalar():
        raise ValueError("The second argument to quad_over_lin must be a scalar.")
    if self.args[1].is_complex():
        raise ValueError("The second argument to quad_over_lin cannot be complex.")
    super(quad_over_lin, self).METHOD_NAME()