code: def retrieve_artifact(name: str):
      _artifact = {}
  
      if os.path.exists(name):
          files = os.listdir(name)
          for file in files:
              try:
                  with open(
                      os.path.join(name, file), encoding="utf-8"
                  ) as f:
                      _artifact[file.split(".")[0]] = f.read()
              except UnicodeDecodeError as e:
                  raise ValueError(
                      f"Could not open {os.path.join(name, file)}."
                  ) from e
  
      return _artifact
  
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 4 for calling a global function with example usage: retrieve_artifact(name) and returns: _artifact