code: def main() -> None:
      details = {
          "System": info_system(),
          "CUDA": info_cuda(),
          "Packages": info_packages(),
      }
      details["Lightning"] = {
          k: v
          for k, v in details["Packages"].items()
          if "torch" in k or "lightning" in k
      }
      lines = nice_print(details)
      text = os.linesep.join(lines)
      print(
          f"<details>\n  <summary>Current environment</summary>\n\n{text}\n\n</details>"
      )
  
file_path: pytorch-lightning/requirements/collect_env_details.py
imports: import os
  import platform
  import sys
  import pkg_resources
  import torch
label_desc: Use image node_id 5 for calling a global function with example usage: main() without return types