code: def randn_ktensor(shape, rank, norm=None, random_state=None):
      rns = _check_random_state(random_state)
      factors = KTensor([rns.standard_normal((i, rank)) for i in shape])
      return _rescale_tensor(factors, norm)