code: def blas(name, ndarray):
      """Helper for getting the appropriate BLAS function, using :func:`scipy.linalg.get_blas_funcs`.
  
      Parameters
      ----------
      name : str
          Name(s) of BLAS functions, without the type prefix.
      ndarray : numpy.ndarray
          Arrays can be given to determine optimal prefix of BLAS routines.
  
      Returns
      -------
      object
          BLAS function for the needed operation on the given data type.
  
      """
      return get_blas_funcs((name,), (ndarray,))[0]
  
imports: from __future__ import with_statement
  import logging
  import math
  from gensim import utils
  import numpy
  import scipy.sparse
  from scipy.stats import entropy
  from scipy.linalg import get_blas_funcs, triu
  from scipy.linalg.lapack import get_lapack_funcs
  from scipy.special import psi
label_desc: Use image node_id 1 for calling a global function with example usage: blas(name, ndarray) and returns: get_blas_funcs