<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def print_version():
 """ Print out the current version, and at least try to fetch the latest from PyPi to print alongside it. It may seem odd that this isn't in globus_cli.version , but it's done this way to separate concerns over printing the version from looking it up. """

    latest, current = get_versions()
    if latest is None:
        safeprint(
            ("Installed Version: {0}\n" "Failed to lookup latest version.").format(
                current
            )
        )
    else:
        safeprint(
            ("Installed Version: {0}\n" "Latest Version:    {1}\n" "\n{2}").format(
                current,
                latest,
                "You are running the latest version of the Globus CLI"
                if current == latest
                else (
                    "You should update your version of the Globus CLI with\n"
                    "  globus update"
                )
                if current < latest
                else "You are running a preview version of the Globus CLI",
            )
        )

    # verbose shows more platform and python info
    # it also includes versions of some CLI dependencies
    if is_verbose():
        moddata = _get_package_data()

        safeprint("\nVerbose Data\n---")

        safeprint("platform:")
        safeprint("  platform: {}".format(platform.platform()))
        safeprint("  py_implementation: {}".format(platform.python_implementation()))
        safeprint("  py_version: {}".format(platform.python_version()))
        safeprint("  sys.executable: {}".format(sys.executable))
        safeprint("  site.USER_BASE: {}".format(site.USER_BASE))

        safeprint("modules:")
        for mod, modversion, modfile, modpath in moddata:
            safeprint("  {}:".format(mod))
            safeprint("    __version__: {}".format(modversion))
            safeprint("    __file__: {}".format(modfile))
            safeprint("    __path__: {}".format(modpath))