code: def map_to_ids(self, text):
      return np.asarray([self.word2id[x] for x in text], dtype="int64")
  
imports: import sys
  import os
  import argparse
  import time
  import random
  import math
  import numpy
  import torch
  import torch.nn
  import torch.nn.functional
  from torch.autograd import Variable
  import sru
label_desc: Use image node_id 3 for calling the EmbeddingLayer obj's underlying member method code with example usage: obj.map_to_ids(text) and returns: np