class_docstr: Test Time2Vec layer
class_docstr_tok: ["Test","Time2Vec","layer"]
code: def test_time2vec(self):
      x = torch.randn(1, 3)
      model1 = Time2Vec(seq_len=3, activation="sin")
      model2 = Time2Vec(seq_len=3, activation="cos")
      self.assertEqual(model1(x).shape, model2(x).shape, (1, 3))
  
imports: import unittest
  from towhee.models.layers.time2vec import Time2Vec
  import torch
label_desc: Use image node_id 1 for calling the TestTime2Vec obj's underlying member method code with example usage: obj.test_time2vec() without return types