parameters: (ckpt_dir_or_file)
return_statement: return ckpt_dir_or_file
docstring: Returns checkpoint filename given directory or specific checkpoint file.
docstring_summary: Returns checkpoint filename given directory or specific checkpoint file.
docstring_tokens: Returns checkpoint filename given directory or specific checkpoint file .
function: def _get_checkpoint_filename(ckpt_dir_or_file):
    """Returns checkpoint filename given directory or specific checkpoint file."""
    if gfile.IsDirectory(ckpt_dir_or_file):
      return saver.latest_checkpoint(ckpt_dir_or_file)
    return ckpt_dir_or_file
function_tokens: def _get_checkpoint_filename ( ckpt_dir_or_file ) : if gfile . IsDirectory ( ckpt_dir_or_file ) : return saver . latest_checkpoint ( ckpt_dir_or_file ) return ckpt_dir_or_file