<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def encodeThetas(self, theta1, theta2):
 """Return the SDR for theta1 and theta2"""

    # print >> sys.stderr, "encoded theta1 value = ", theta1
    # print >> sys.stderr, "encoded theta2 value = ", theta2
    t1e = self.theta1Encoder.encode(theta1)
    t2e = self.theta2Encoder.encode(theta2)
    # print >> sys.stderr, "encoded theta1 = ", t1e.nonzero()[0]
    # print >> sys.stderr, "encoded theta2 = ", t2e.nonzero()[0]
    ex = numpy.outer(t2e,t1e)
    return ex.flatten().nonzero()[0]