code: def get_latest_operative_config(restore_dir):
      """Finds the most recently saved operative_config in a directory.
  
      Args:
        restore_dir: Path to directory with gin operative_configs. Will also work
          if passing a path to a file in that directory such as a checkpoint.
  
      Returns:
        Filepath to most recent operative config.
  
      Raises:
        FileNotFoundError: If no config is found.
      """
      try:
          return get_latest_file(
              restore_dir, prefix="operative_config-", suffix=".gin"
          )
      except FileNotFoundError:
          return get_latest_file(
              os.path.dirname(restore_dir),
              prefix="operative_config-",
              suffix=".gin",
          )
  
file_path: ddsp/ddsp/training/train_util.py
imports: import json
  import os
  import time
  from absl import logging
  from ddsp.training import cloud
  import gin
  import tensorflow.compat.v2
label_desc: Use image node_id 5 for calling a global function with example usage: get_latest_operative_config(restore_dir) and returns: get_latest_file, get_latest_file