code: def kron(a, b):
      
      if hasattr(a, '__kron__'):
          return a.__kron__(b)
      if a is None:
          return b
      else:
          raise ValueError(
              'Kron is waiting for two TT-vectors or two TT-matrices')
docs: Kronecker product of two TT-matrices or two TT-vectors