code: def get_system_spec() -> Dict[str, str]:
      
      import pkg_resources
      import platform
  
      if sys.platform == 'darwin':
          system_info = 'macOS {} {}'.format(
              platform.mac_ver()[0],
              platform.architecture()[0],
          )
      else:
          system_info = '{} {} {}'.format(
              platform.system(),
              '_'.join(part for part in platform.architecture() if part),
              platform.release(),
          )
  
      try:
          version = pkg_resources.require(raiden.__name__)[0].version
      except (pkg_resources.VersionConflict, pkg_resources.DistributionNotFound):
          raise RuntimeError(
              'Cannot detect Raiden version. Did you do python setup.py?  '
              'Refer to https://raiden-network.readthedocs.io/en/latest/'
              'overview_and_guide.html#for-developers',
          )
  
      system_spec = {
          'raiden': version,
          'python_implementation': platform.python_implementation(),
          'python_version': platform.python_version(),
          'system': system_info,
          'architecture': platform.machine(),
          'distribution': 'bundled' if getattr(sys, 'frozen', False) else 'source',
      }
      return system_spec
docs: Collect information about the system and installation.