code: def test_info_versions():
      runner = CliRunner()
      result = runner.invoke(dask.cli.versions)
      assert result.exit_code == 0
  
      # $ dask info versions
      # will print to stdout a json like struct, so result.output can be
      # loaded with json.
      table = json.loads(result.output)
  
      assert table["Python"] == ".".join(
          str(x) for x in sys.version_info[:3]
      )
      assert table["dask"] == dask.__version__
      assert table["Platform"] == platform.uname().system
  
      try:
          from distributed import __version__ as distributed_version
      except ImportError:
          distributed_version = None
  
      assert table["distributed"] == distributed_version
  
imports: from __future__ import annotations
  import json
  import platform
  import sys
  import click
  import importlib_metadata
  import pytest
  from click.testing import CliRunner
  import dask
  import dask.cli
label_desc: Use image node_id 6 for calling a global function with example usage: test_info_versions() without return types