code: def retrieve_available_artifacts():
      class Artifact:
          def __init__(self, name: str):
              self.name = name
              self.paths = []
  
          def __str__(self):
              return self.name
  
          def add_path(self, path: str):
              self.paths.append({"name": self.name, "path": path})
  
      _available_artifacts: Dict[str, Artifact] = {}
  
      directories = filter(os.path.isdir, os.listdir())
      for directory in directories:
          artifact_name = directory
          if artifact_name not in _available_artifacts:
              _available_artifacts[artifact_name] = Artifact(
                  artifact_name
              )
  
              _available_artifacts[artifact_name].add_path(directory)
  
      return _available_artifacts
  
imports: import collections
  import json
  import math
  import os
  import re
  import time
  from fnmatch import fnmatch
  from typing import Dict
  import requests
  from slack_sdk import WebClient
label_desc: Use image node_id 5 for calling a global function with example usage: retrieve_available_artifacts() and returns: _available_artifacts, self