code: def test_encode(self):
      random.seed(2)
      text = [
          "".join(
              random.choices(string.printable, k=random.randint(5, 500))
          )
          for x in range(1000)
      ]
  
      enc = TfidfEncoder()
      enc.prepare(text)
      encoded_data = enc.encode(text)
      print(encoded_data)
  
imports: import unittest
  import random
  import string
  from lightwood.encoder.text import TfidfEncoder
label_desc: Use image node_id 1 for calling the TestTfidfEncoder obj's underlying member method code with example usage: obj.test_encode() without return types