def make_invalid_op(name):
def invalid_op(self, other=None):<EOL><INDENT>raise TypeError("<STR_LIT>"<EOL>"<STR_LIT>".format(name=name, typ=type(self).__name__))<EOL><DEDENT>invalid_op.__name__ = name<EOL>return invalid_op<EOL>
Return a binary method that always raises a TypeError.

Parameters
----------
name : str

Returns
-------
invalid_op : function