code: def test_get_single_embedding(self):
      model = get_bert_model()
      device = torch.device(
          "cpu" if not torch.cuda.is_available() else "cuda"
      )
      text = (
          "rare bird has more than enough charm to make it memorable."
      )
      embedded_input = _get_single_embedding(model, text, device)
      assert embedded_input is not None
  
file_path: interpret-text/test/unit/test_unified_utils.py
imports: import torch
  from interpret_text.experimental.common.utils_unified import _get_single_embedding, make_bert_embeddings
  from utils_test import get_mnli_test_dataset, get_bert_model
label_desc: Use image node_id 2 for calling the TestUnifiedExplainerUtils obj's underlying member method code with example usage: obj.test_get_single_embedding() without return types