<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def ttr(self, kloc, acc=10**3, verbose=1):
 """ Three terms relation's coefficient generator Args: k (numpy.ndarray, int):
 The order of the coefficients. acc (int):
 Accuracy of discretized Stieltjes if analytical methods are unavailable. Returns: (Recurrence coefficients):
 Where out[0] is the first (A) and out[1] is the second coefficient With ``out.shape==(2,)+k.shape``. """

        kloc = numpy.asarray(kloc, dtype=int)
        shape = kloc.shape
        kloc = kloc.reshape(len(self), -1)
        cache = {}
        out = [evaluation.evaluate_recurrence_coefficients(self, k)
               for k in kloc.T]
        out = numpy.array(out).T
        return out.reshape((2,)+shape)