@typecheck_method(a=IR, i=IR)
def copy(self, a, i):
    new_instance = self.__class__
    return new_instance(a, i)
@typecheck_method(a=IR, i=IR)
def copy(self, a, i):
    new_instance = self.__class__
    return new_instance(a, i)