code: def _preload_warning(lib, exc):
      config = get_preload_config()
      if config is None or lib not in config:
          return
  
      if config["packaging"] == "pip":
          cuda = config["cuda"]
          if lib == "cutensor":
              cuda_major = cuda.split(".")[0]
              version = config["cutensor"]["version"]
              cmd = f'pip install "cutensor-cu{cuda_major}~={version}"'
          else:
              cmd = f"python -m cupyx.tools.install_library --library {lib} --cuda {cuda}"  # NOQA
      elif config["packaging"] == "conda":
          cmd = f"conda install -c conda-forge {lib}"
      else:
          raise AssertionError
      warnings.warn(
          f"""
  {lib} library could not be loaded.
  
  Reason: {type(exc).__name__} ({str(exc)})
  
  You can install the library by:
    $ {cmd}
  """
      )
  
imports: import ctypes
  import importlib.metadata
  import json
  import os
  import os.path
  import re
  import shutil
  import sys
  from typing import Any, Dict, List, Optional, Tuple
  import warnings
label_desc: Use image node_id 21 for calling a global function with example usage: _preload_warning(lib, exc) without return types