code: def _make_discriminator(spec):
      def discriminator(*args, **kwargs) -> networks_lib.Logits:
          return ail_networks.DiscriminatorModule(
              environment_spec=spec,
              use_action=False,
              use_next_obs=False,
              network_core=ail_networks.DiscriminatorMLP([]),
          )(*args, **kwargs)
  
      discriminator_transformed = hk.without_apply_rng(
          hk.transform_with_state(discriminator)
      )
      return ail_networks.make_discriminator(
          environment_spec=spec,
          discriminator_transformed=discriminator_transformed,
      )
  
file_path: acme/acme/agents/jax/ail/learning_test.py
imports: import functools
  from acme import specs
  from acme import types
  from acme.agents.jax.ail import learning
  from acme.agents.jax.ail import losses
  from acme.agents.jax.ail import networks
  from acme.jax import networks
  from acme.jax import utils
  import haiku
  import jax
  import numpy
  import optax
  from absl.testing import absltest
label_desc: Use image node_id 1 for calling a global function with example usage: _make_discriminator(spec) and returns: ail_networks, ail_networks