code: def testCopyCreateNewInstanceOfNetworkIfNotRedefined(self):
      # Create a wrapped network.
      wrapped_network = value_network.ValueNetwork(
          self._observation_spec, fc_layer_params=(2,)
      )
  
      # Create and build a `splitter_network`.
      splitter_network = mask_splitter_network.MaskSplitterNetwork(
          splitter_fn=self._splitter_fn,
          wrapped_network=wrapped_network,
          passthrough_mask=True,
          input_tensor_spec=self._observation_and_mask_spec,
      )
      splitter_network.create_variables()
  
      # Copy and build the copied network.
      copied_splitter_network = splitter_network.copy()
      copied_splitter_network.create_variables()
  
      # Check if the underlying wrapped network objects are different.
      self.assertIsNot(
          copied_splitter_network._wrapped_network,
          splitter_network._wrapped_network,
      )
  
imports: import tensorflow.compat.v2
  import tensorflow_probability
  from tf_agents.networks import mask_splitter_network
  from tf_agents.networks import network
  from tf_agents.networks import value_network
  from tf_agents.specs import distribution_spec
  from tf_agents.specs import tensor_spec
  from tf_agents.utils import test_utils
label_desc: Use image node_id 8 for calling the MaskSplitterNetworkTest obj's underlying member method code with example usage: obj.testCopyCreateNewInstanceOfNetworkIfNotRedefined() without return types