code: def get_installed_libraries(api_client, cluster_id):
      """Returns the installed PyPI packages and the ones that failed.
  
      Args:
          api_client (ApiClient object): object used for authenticating to the workspace
          cluster_id (str): id of the cluster
  
      Returns:
          Dict[str, str]: dictionary of {package: status}
      """
      cluster_status = LibrariesApi(api_client).cluster_status(
          cluster_id
      )
      libraries = {
          lib["library"]["pypi"]["package"]: lib["status"]
          for lib in cluster_status["library_statuses"]
          if "pypi" in lib["library"]
      }
      return {
          pkg_resources.Requirement.parse(package).name: libraries[
              package
          ]
          for package in libraries
      }
  
file_path: recommenders/tools/databricks_install.py
imports: import argparse
  import textwrap
  import os
  from pathlib import Path
  import pkg_resources
  import sys
  import time
  from urllib.request import urlretrieve
  from requests.exceptions import HTTPError
  from databricks_cli.configure.provider import ProfileConfigProvider
  from databricks_cli.configure.config import _get_api_client
  from databricks_cli.clusters.api import ClusterApi
  from databricks_cli.dbfs.api import DbfsApi
  from databricks_cli.libraries.api import LibrariesApi
  from databricks_cli.dbfs.dbfs_path import DbfsPath
  from recommenders.utils.spark_utils import MMLSPARK_PACKAGE, MMLSPARK_REPO
label_desc: Use image node_id 2 for calling a global function with example usage: get_installed_libraries(api_client, cluster_id) and returns: unknown