class_docstr: Test cases for ResNet v1.5 model definition.
docstr: Tests ResNet18 V1.5 model definition and output (variables).
code: def test_resnet_18_model(self, model):
      """Tests ResNet18 V1.5 model definition and output (variables)."""
      rng = jax.random.key(0)
      model_def = model(num_classes=2, dtype=jnp.float32)
      variables = model_def.init(
          rng, jnp.ones((1, 64, 64, 3), jnp.float32)
      )
  
      self.assertLen(variables, 2)
      self.assertLen(variables["params"], 11)
  
file_path: flax/examples/imagenet/models_test.py
imports: from absl.testing import absltest
  from absl.testing import parameterized
  import jax
  from jax import numpy
  import models
label_desc: Use image node_id 2 for calling the ResNetTest obj's underlying member method code with example usage: obj.test_resnet_18_model(model) without return types