code: def _select_function(sort):
      if callable(sort):
          # assume the user knows what they're doing
          sfunction = sort
      elif sort == "lhp":
          sfunction = _lhp
      elif sort == "rhp":
          sfunction = _rhp
      elif sort == "iuc":
          sfunction = _iuc
      elif sort == "ouc":
          sfunction = _ouc
      else:
          raise ValueError(
              "sort parameter must be None, a callable, or "
              "one of ('lhp','rhp','iuc','ouc')"
          )
  
      return sfunction
  
file_path: catboost/contrib/python/scipy/py3/scipy/linalg/_decomp_qz.py
imports: import warnings
  import numpy
  from numpy import asarray_chkfinite
  from .misc import LinAlgError, _datacopied, LinAlgWarning
  from .lapack import get_lapack_funcs
label_desc: Use image node_id 1 for calling a global function with example usage: _select_function(sort) and returns: sfunction