def get_train_config(
    config: ml_collections.ConfigDict,
    override_prefix: Optional[Tuple[str, ...]] = None
) -> Tuple[ml_collections.ConfigDict, str]:
  """Gets the train_config information from global config.


  Args:
    config: Configurations of the experiment.
    override_prefix: tuple of string prefix to override the values in the
      train_config or None if nothing is overridden

  Returns:
    The train_config with updated values for the specified prefixes.
  """
  assert 'eval_from' in config, 'eval_from is missing in the config.'
  train_config = config
  ckpt_path = ''
  if config.eval_from.get('checkpoint_path') is not None:
    # uses the user-provided dir to override.
    ckpt_path = config.eval_from.checkpoint_path
  return train_config, ckpt_path
Gets the train_config information from global config.


  Args:
    config: Configurations of the experiment.
    override_prefix: tuple of string prefix to override the values in the
      train_config or None if nothing is overridden

  Returns:
    The train_config with updated values for the specified prefixes.
  
videogvt/train_lib/eval_utils.py