code: def process_details():
          
          results = {"argv": sys.argv, "working.directory": os.getcwd()}
  
          # Process ID and execution IDs (UID, GID, Login, ...)
          for key, method in {
              "pid": "getpid",
              "ppid": "getppid",
              "login": "getlogin",
              "uid": "getuid",
              "euid": "geteuid",
              "gid": "getgid",
              "egid": "getegid",
              "groups": "getgroups",
          }.items():
              try:
                  results[key] = getattr(os, method)()
              except (AttributeError, OSError):
                  results[key] = None
          return results
docs: Returns details about the current process