@typecheck_method(child=MatrixIR)
def copy(self, child):
    new_instance = self.__class__
    return new_instance(child, self.matrix_writer)
@typecheck_method(child=MatrixIR)
def copy(self, child):
    new_instance = self.__class__
    return new_instance(child, self.matrix_writer)