code: def test_new_errors(
      self, last_layer, logits, complexity, persisted_tensors
  ):
      with self.test_session():
          with self.assertRaises(ValueError):
              Subnetwork(
                  last_layer, logits, complexity, persisted_tensors
              )
  
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 2 for calling the SubnetworkTest obj's underlying member method code with example usage: obj.test_new_errors(last_layer, logits, complexity, persisted_tensors) without return types