text: import json
  import platform
  import sys
  import sysconfig
  
  metadata = {
      "major": sys.version_info.major,
      "minor": sys.version_info.minor,
      "abiflags": sysconfig.get_config_var("ABIFLAGS"),
      "interpreter": platform.python_implementation().lower(),
      "ext_suffix": sysconfig.get_config_var("EXT_SUFFIX"),
      "abi_tag": (sysconfig.get_config_var("SOABI") or "-").split("-")[1] or None,
      "m": sysconfig.get_config_var("WITH_PYMALLOC") == 1,
      "u": sysconfig.get_config_var("Py_UNICODE_SIZE") == 4,
      "d": sysconfig.get_config_var("Py_DEBUG") == 1,
      # This one isn't technically necessary, but still very useful for sanity checks
      "platform": sys.platform,
  }
  
  print(json.dumps(metadata))
  