code: def test_new(
      self,
      last_layer,
      logits,
      complexity,
      persisted_tensors=None,
      shared=None,
  ):
      with self.test_session():
          got = Subnetwork(
              last_layer, logits, complexity, persisted_tensors, shared
          )
          self.assertEqual(got.last_layer, last_layer)
          self.assertEqual(got.logits, logits)
          self.assertEqual(got.complexity, complexity)
          self.assertEqual(got.persisted_tensors, persisted_tensors)
          self.assertEqual(got.shared, shared)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from absl.testing import parameterized
  from adanet import tf_compat
  from adanet.subnetwork.generator import Builder
  from adanet.subnetwork.generator import Subnetwork
  import tensorflow.compat.v2
label_desc: Use image node_id 1 for calling the SubnetworkTest obj's underlying member method code with example usage: obj.test_new(last_layer, logits, complexity, persisted_tensors, shared) without return types