code: def apply_noise(x, noise_var=None, randomize_noise=True):
      assert len(x.shape) == 4  # NCHW
      with tf.variable_scope("Noise"):
          if noise_var is None or randomize_noise:
              noise = tf.random_normal(
                  [tf.shape(x)[0], 1, x.shape[2], x.shape[3]],
                  dtype=x.dtype,
              )
          else:
              noise = tf.cast(noise_var, x.dtype)
          weight = tf.get_variable(
              "weight",
              shape=[x.shape[1].value],
              initializer=tf.initializers.zeros(),
          )
          return x + noise * tf.reshape(
              tf.cast(weight, x.dtype), [1, -1, 1, 1]
          )
  
imports: import numpy
  import tensorflow
  import dnnlib
  import dnnlib.tflib
label_desc: Use image node_id 17 for calling a global function with example usage: apply_noise(x, noise_var, randomize_noise) and returns: unknown