code: def check_values_changed(
      agent, initial_values, check_value_changes, name=None
  ):
      """Checks that the initial values."""
      final_values = [
          get_variable_value(agent, var_name)
          for var_name in check_value_changes
      ]
      for var_name, initial, final in zip(
          check_value_changes, initial_values, final_values
      ):
          all_close = np.allclose(initial, final)
          assert (
              not all_close
          ), '[{}] Variable "{}" did not change: {} -> {}'.format(
              name, var_name, initial, final
          )
  
imports: import datetime
  import os
  import time
  from typing import Dict, Optional, Tuple
  from absl import logging
  import numpy
  from six.moves import range
  from six.moves import zip
  import tensorflow
  from tensorflow.core.util import event_pb2
  from tensorflow.python.lib.io import tf_record
label_desc: Use image node_id 5 for calling a global function with example usage: check_values_changed(agent, initial_values, check_value_changes, name) without return types