def METHOD_NAME(args):
    """
    Get and print the version information from the version config
    file and Thrift API definition.
    """
    # If the given output format is not 'table', redirect logger's output to
    # the stderr.
    stream = None
    if 'output_format' in args and args.output_format != 'table':
        stream = 'stderr'
    logger.setup_logger(args.verbose if 'verbose' in args else None, stream)
    Version().print(args.output_format)