docstr: Tests that datasets can be created when no defaults are specified.
  
  In that case, we should infer the types from the first N records.
docstr_tok: ["Tests","that","datasets","can","be","created","when","no","defaults","are","specified",".","In","that","case",",","we","should","infer","the","types","from","the","first","N","records","."]
code: def testWithTypeInference(self):
      """Tests that datasets can be created when no defaults are specified.
  
      In that case, we should infer the types from the first N records.
      """
      column_names = ["col%d" % i for i in range(5)]
      str_int32_max = str(2**33)
      inputs = [
          [
              ",".join(x for x in column_names),
              "0,%s,2.0,3e50,rabbit" % str_int32_max,
          ]
      ]
      expected_output = [[0, 2**33, 2.0, 3e50, b"rabbit"]]
      label = "col0"
  
      self._test_dataset(
          inputs,
          expected_output=expected_output,
          expected_keys=column_names,
          column_names=column_names,
          label_name=label,
          batch_size=1,
          num_epochs=1,
          shuffle=False,
          header=True,
      )
  
imports: import gzip
  import os
  import zlib
  from absl.testing import parameterized
  import numpy
  from tensorflow.python.data.experimental.ops import readers
  from tensorflow.python.data.kernel_tests import test_base
  from tensorflow.python.data.ops import dataset_ops
  from tensorflow.python.data.util import nest
  from tensorflow.python.framework import combinations
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors
  from tensorflow.python.platform import test
label_desc: Use image node_id 17 for calling the MakeCsvDatasetTest obj's underlying member method code with example usage: obj.testWithTypeInference() without return types