code: def restore_counter(
      checkpointing_config: experiments.CheckpointingConfig,
  ) -> counting.Counter:
      """Restores a counter from the latest checkpoint saved with this config."""
      counter = counting.Counter()
      savers.Checkpointer(
          objects_to_save={"counter": counter},
          directory=checkpointing_config.directory,
          add_uid=checkpointing_config.add_uid,
          max_to_keep=checkpointing_config.max_to_keep,
      )
      return counter
  
imports: from acme.jax import experiments
  from acme.tf import savers
  from acme.utils import counting
label_desc: Use image node_id 1 for calling a global function with example usage: restore_counter(checkpointing_config) and returns: counter