code: def testGermanCreditNumeric(self):
      dataset = data.german_credit_numeric(train_fraction=0.75)
      self.assertEqual((750, 24), dataset["train_features"].shape)
      self.assertEqual((750,), dataset["train_labels"].shape)
      self.assertEqual((250, 24), dataset["test_features"].shape)
      self.assertEqual((250,), dataset["test_labels"].shape)
      self.assertAllClose(
          np.zeros([24]),
          np.mean(dataset["train_features"], 0),
          atol=1e-5,
      )
      self.assertAllClose(
          np.ones([24]), np.std(dataset["train_features"], 0), atol=1e-5
      )
      self.assertAllClose(
          np.zeros([24]), np.mean(dataset["test_features"], 0), atol=0.3
      )
      self.assertAllClose(
          np.ones([24]), np.std(dataset["test_features"], 0), atol=0.3
      )
  
file_path: probability/spinoffs/inference_gym/inference_gym/internal/data_test.py
imports: import numpy
  import tensorflow.compat.v2
  from tensorflow_probability.python.internal import test_util
  from inference_gym.internal import data
  from inference_gym.internal import test_util
label_desc: Use image node_id 1 for calling the DataTest obj's underlying member method code with example usage: obj.testGermanCreditNumeric() without return types