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 put(self):
      data = request.get_json()
      if isinstance(data, dict):
          return jsonify({"dim": self.embedding_dim})
      sentences = data
      emb = self.get_emb(sentences)
      str_emb = base64.b64encode(pickle.dumps(emb))
      return str_emb.decode("ascii")
  
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 2 for calling the SentenceBertResource obj's underlying member method code with example usage: obj.put() and returns: str_emb, jsonify