code: def blas_info():
      pools = threadpoolctl.threadpool_info()
      blas = None
      for pool in pools:
          if pool["user_api"] != "blas":
              continue
  
          if blas is not None:
              _log.warning("found multiple BLAS layers, using first")
              _log.info("later layer is: %s", pool)
              continue
  
          blas = BlasInfo(
              pool["internal_api"],
              pool.get("threading_layer", None),
              pool.get("num_threads", None),
              pool["version"],
          )
  
      return blas
  
file_path: lkpy/lenskit/util/debug.py
imports: import sys
  import logging
  from typing import Optional
  from dataclasses import dataclass
  import numba
  import threadpoolctl
  from .parallel import is_worker
label_desc: Use image node_id 2 for calling a global function with example usage: blas_info() and returns: blas