class_docstr: Tests for _encode_examples.
class_docstr_tok: ["Tests","for","_encode_examples","."]
code: def test_encoder_multivalent_numerical_with_nulls(self):
      batch = pa.RecordBatch.from_arrays(
          [pa.array([[1.0, 1.0, np.NaN], None, [2.0, 2.0, 1.0], []])],
          ["fa"],
      )
      expected = {
          types.FeaturePath(["fa"]): [
              [2, 0, 0],
              [None, None, None],
              [1, 0, 2],
              [None, None, None],
          ]
      }
      self.assert_encoder_output_equal(
          batch, expected, set([types.FeaturePath(["fa"])]), EMPTY_SET
      )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from absl.testing import absltest
  from absl.testing import parameterized
  import apache_beam
  from apache_beam.testing import util
  import numpy
  import pyarrow
  from tensorflow_data_validation import types
  from tensorflow_data_validation.statistics.generators import mutual_information
  from tensorflow_data_validation.statistics.generators import partitioned_stats_generator
  from tensorflow_data_validation.utils import test_util
  from tfx_bsl.arrow import table_util
  from google.protobuf import text_format
  from tensorflow_metadata.proto.v0 import schema_pb2
  from tensorflow_metadata.proto.v0 import statistics_pb2
label_desc: Use image node_id 4 for calling the EncodeExamplesTest obj's underlying member method code with example usage: obj.test_encoder_multivalent_numerical_with_nulls() without return types