code: def clip(arg, lower=None, upper=None):
      
      if lower is None and upper is None:
          raise ValueError("at least one of lower and " "upper must be provided")
  
      op = ops.Clip(arg, lower, upper)
      return op.to_expr()
docs: Trim values at input threshold(s).
  
      Parameters
      ----------
      lower : float
      upper : float
  
      Returns
      -------
      clipped : same as type of the input