class_docstr: SentenceBERT Flask resource.
  The PUT method is to get token/str embedding.
class_docstr_tok: ["SentenceBERT","Flask","resource",".","The","PUT","method","is","to","get","token\/str","embedding","."]
code: def __init__(
      self,
      bert_model,
      tokenizer,
      pool,
      sentence_bert_batch,
  ):
      # server
      self.bert_model = bert_model
      self.tokenizer = tokenizer
      self.pool = pool
      self.sentence_bert_batch = sentence_bert_batch
      self.embedding_dim = (
          self.bert_model.get_sentence_embedding_dimension()
      )
  
file_path: NeMo/nemo/collections/nlp/modules/common/megatron/retrieval_services/bert_service.py
imports: import base64
  import pickle
  import threading
  import time
  from typing import List, Union
  import torch
  from flask import Flask, jsonify, request
  from flask_restful import Api, Resource
  from sentence_transformers import SentenceTransformer
  from nemo.collections.common.tokenizers.tokenizer_spec import TokenizerSpec
label_desc: Use image node_id 1 to create a new SentenceBertResource object from inherited base classes: Resource with example: obj = SentenceBertResource(bert_model, tokenizer, pool, sentence_bert_batch)