code: def test_system_info():
      schema = Schema(
          {"os": Any("windows", "mac", "linux")}, required=True
      )
  
      system = platform.system()
  
      if system == "Windows":
          schema = schema.extend(
              {
                  "windows_version_build": int,
                  "windows_version_major": int,
                  "windows_version_minor": int,
                  "windows_version_service_pack": str,
              }
          )
  
      if system == "Darwin":
          schema = schema.extend({"mac_version": str})
  
      if system == "Linux":
          schema = schema.extend(
              {
                  "linux_distro": str,
                  "linux_distro_like": str,
                  "linux_distro_version": str,
              }
          )
  
      assert schema(analytics._system_info())
  
file_path: dvc/tests/unit/test_analytics.py
imports: import json
  import platform
  import pytest
  from voluptuous import Any, Schema
  from dvc import analytics
  from dvc.cli import parse_args
label_desc: Use image node_id 7 for calling a global function with example usage: test_system_info() without return types