code: def make_invalid_op(name):
      
      def invalid_op(self, other=None):
          raise TypeError("cannot perform {name} with this index type: "
                          "{typ}".format(name=name, typ=type(self).__name__))
  
      invalid_op.__name__ = name
      return invalid_op
docs: Return a binary method that always raises a TypeError.
  
      Parameters
      ----------
      name : str
  
      Returns
      -------
      invalid_op : function