parameters: (prefix, format_version)
return_statement: return prefix
docstring: Returns the pathname of a checkpoint file, given the checkpoint prefix.
  
    For V1 checkpoint, simply returns the prefix itself (the data file).  For V2,
    returns the pathname to the index file.
  
    Args:
      prefix: a string, the prefix of a checkpoint.
      format_version: the checkpoint format version that corresponds to the
        prefix.
    Returns:
      The pathname of a checkpoint file, taking into account the checkpoint
        format version.
docstring_summary: Returns the pathname of a checkpoint file, given the checkpoint prefix.
docstring_tokens: Returns the pathname of a checkpoint file given the checkpoint prefix .
function: def _prefix_to_checkpoint_path(prefix, format_version):
    """Returns the pathname of a checkpoint file, given the checkpoint prefix.
  
    For V1 checkpoint, simply returns the prefix itself (the data file).  For V2,
    returns the pathname to the index file.
  
    Args:
      prefix: a string, the prefix of a checkpoint.
      format_version: the checkpoint format version that corresponds to the
        prefix.
    Returns:
      The pathname of a checkpoint file, taking into account the checkpoint
        format version.
    """
    if format_version == saver_pb2.SaverDef.V2:
      return prefix + ".index"  # The index file identifies a checkpoint.
    return prefix
function_tokens: def _prefix_to_checkpoint_path ( prefix , format_version ) : if format_version == saver_pb2 . SaverDef . V2 : return prefix + ".index" # The index file identifies a checkpoint. return prefix