code: def check_metadata(node: Dict) -> Optional[Dict]:
      try:
          res = requests.get(metadata_url(node))
          if res.status_code != 200:
              print(f"Got status_code: {res.status_code}")
          metadata = res.json()
          name = node["name"]
          print(f"{name} syft_version: ", metadata["syft_version"])
          return metadata
      except Exception as e:
          print(f"Failed to get metadata. {e}")
      return None
  
imports: import json
  import os
  import subprocess
  from typing import Any
  from typing import Dict
  from typing import Optional
  from typing import Tuple
  import git
  import requests
label_desc: Use image node_id 5 for calling a global function with example usage: check_metadata(node) and returns: None, metadata