code: def test_create_bert_inputs(self):
      inputs_sentences_1 = [np.array([100, 150, 200])]
      inputs_sentences_2 = [np.array([300, 500])]
      labels = [np.array(1)]
  
      create_inputs_1 = tf_inputs.CreateBertInputs(False)
      create_inputs_2 = tf_inputs.CreateBertInputs(True)
      for res in create_inputs_1(zip(inputs_sentences_1, labels)):
          values, segment_embs, _, label, weight = res
          self.assertAllEqual(
              values, np.array([101, 100, 150, 200, 102])
          )
          self.assertAllEqual(segment_embs, np.zeros(5))
          self.assertEqual(label, np.int64(1))
          self.assertEqual(weight, np.int64(1))
  
      for res in create_inputs_2(
          zip(inputs_sentences_1, inputs_sentences_2, labels)
      ):
          values, segment_embs, _, label, weight = res
          self.assertAllEqual(
              values, np.array([101, 100, 150, 200, 102, 300, 500, 102])
          )
          exp_segment = np.concatenate((np.zeros(5), np.ones(3)))
          self.assertAllEqual(segment_embs, exp_segment)
          self.assertEqual(label, np.int64(1))
          self.assertEqual(weight, np.int64(1))
  
imports: import collections
  import os
  from unittest import mock
  import gin
  import numpy
  from t5.data import assert_dataset
  from t5.data import preprocessors
  import tensorflow
  import tensorflow_datasets
  from trax.data import inputs
  from trax.data import tf_inputs
label_desc: Use image node_id 23 for calling the TFInputsTest obj's underlying member method code with example usage: obj.test_create_bert_inputs() without return types