code: def _one_hot_bases(self, bases):
      ref = ["A", "C", "T", "G"]
      one_hots = []
      for base in bases:
          one_hot = [False] * 4
          if base in ref:
              one_hot[ref.index(base)] = True
          one_hots.append(one_hot)
      return np.array(one_hots)
  
file_path: tensor2tensor/tensor2tensor/data_generators/gene_expression_test.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import numpy
  from tensor2tensor.data_generators import dna_encoder
  from tensor2tensor.data_generators import gene_expression
  import tensorflow.compat.v1
label_desc: Use image node_id 1 for calling the GeneticsTest obj's underlying member method code with example usage: obj._one_hot_bases(bases) and returns: np