def METHOD_NAME(self, shape, fargs, mode='eval', term_mode=None,
              diff_var=None, **kwargs):
    if mode == 'weak':
        out, status = self.call_function(None, fargs)
    else:
        out = nm.empty(shape, dtype=nm.float64)
        status = self.call_function(out, fargs)
    return out, status