code: def default_environment():
      # type: () -> Dict[str, str]
      if hasattr(sys, "implementation"):
          # Ignoring the `sys.implementation` reference for type checking due to
          # mypy not liking that the attribute doesn't exist in Python 2.7 when
          # run with the `--py27` flag.
          iver = format_full_version(sys.implementation.version)  # type: ignore
          implementation_name = sys.implementation.name  # type: ignore
      else:
          iver = "0"
          implementation_name = ""
  
      return {
          "implementation_name": implementation_name,
          "implementation_version": iver,
          "os_name": os.name,
          "platform_machine": platform.machine(),
          "platform_release": platform.release(),
          "platform_system": platform.system(),
          "platform_version": platform.version(),
          "python_full_version": platform.python_version(),
          "platform_python_implementation": platform.python_implementation(),
          "python_version": ".".join(
              platform.python_version_tuple()[:2]
          ),
          "sys_platform": sys.platform,
      }
  
imports: from __future__ import absolute_import, division, print_function
  import operator
  import os
  import platform
  import sys
  from pyparsing import Forward, Group, Literal, ParseException, ParseResults, QuotedString, ZeroOrMore, stringEnd, stringStart
  from ._compat import string_types
  from ._typing import TYPE_CHECKING
  from .specifiers import InvalidSpecifier, Specifier
label_desc: Use image node_id 7 for calling a global function with example usage: default_environment() and returns: dict