code: def encode(self, text, return_tensors="pt"):
      return f"encoding from {self.name}"
  
file_path: lightning-flash/tests/core/serve/test_types/test_text.py
imports: from dataclasses import dataclass
  import pytest
  import torch
  from flash.core.utilities.imports import _TOPIC_SERVE_AVAILABLE
label_desc: Use image node_id 1 for calling the CustomTokenizer obj's underlying member method code with example usage: obj.encode(text, return_tensors) and returns: str, self