code: def get_head_feature_vector(self, mention: MentionDataLight):
      embed = None
      if (
          mention.mention_context is not None
          and mention.mention_context
      ):
          sentence = " ".join(mention.mention_context)
          if sentence in self.embeder:
              elmo_full_vec = self.embeder[sentence]
              return ElmoEmbedding.get_mention_vec_from_sent(
                  elmo_full_vec, mention.tokens_number
              )
  
      sentence = mention.tokens_str
      if sentence in self.embeder:
          embed = self.embeder[sentence]
  
      return embed
  
file_path: nlp-architect/nlp_architect/data/cdc_resources/embedding/embed_elmo.py
imports: import logging
  import pickle
  from typing import List
  import numpy
  from nlp_architect.common.cdc.mention_data import MentionDataLight
  from nlp_architect.utils.embedding import ELMoEmbedderTFHUB
label_desc: Use image node_id 2 for calling the ElmoEmbeddingOffline obj's underlying member method code with example usage: obj.get_head_feature_vector(mention) and returns: embed, ElmoEmbedding