code: def test_create_input_array():
      # Prepare Data
      inputs = [["a", "b"], ["b", "b", "b"]]
      input_dict = {"c": 0, "a": 1, "b": 2}
  
      # Inputs property
      max_length = max([len(x) for x in inputs])
  
      # Without reverse input
      output_1 = dc.utils.batch_utils.create_input_array(
          inputs, max_length, False, 2, input_dict, "c"
      )
  
      assert output_1.shape == (2, max_length + 1)
      assert np.allclose(
          output_1,
          np.array([[1.0, 2.0, 0.0, 0.0], [2.0, 2.0, 2.0, 0.0]]),
      )
  
      # With revercse input
      output_2 = dc.utils.batch_utils.create_input_array(
          inputs, max_length, True, 2, input_dict, "c"
      )
  
      assert output_2.shape == (2, max_length + 1)
      assert np.allclose(
          output_2,
          np.array([[2.0, 1.0, 0.0, 0.0], [2.0, 2.0, 2.0, 0.0]]),
      )
  
imports: import os
  import deepchem
  import numpy
label_desc: Use image node_id 3 for calling a global function with example usage: test_create_input_array() without return types