code: def configuration(parent_package="", top_path=None):
      import warnings
      from numpy.distutils.misc_util import Configuration
      from scipy._build_utils.system_info import (
          get_info,
          BlasNotFoundError,
      )
  
      config = Configuration("odr", parent_package, top_path)
  
      libodr_files = ["d_odr.f", "d_mprec.f", "dlunoc.f"]
  
      blas_info = get_info("blas_opt")
      if blas_info:
          libodr_files.append("d_lpk.f")
      else:
          warnings.warn(BlasNotFoundError.__doc__)
          libodr_files.append("d_lpkbls.f")
  
      odrpack_src = [join("odrpack", x) for x in libodr_files]
      config.add_library("odrpack", sources=odrpack_src)
  
      sources = ["__odrpack.c"]
      libraries = ["odrpack"] + blas_info.pop("libraries", [])
      include_dirs = ["."] + blas_info.pop("include_dirs", [])
      config.add_extension(
          "__odrpack",
          sources=sources,
          libraries=libraries,
          include_dirs=include_dirs,
          depends=(["odrpack.h"] + odrpack_src),
          **blas_info,
      )
  
      config.add_data_dir("tests")
      return config
  
label_desc: Use image node_id 1 for calling a global function with example usage: configuration(parent_package, top_path) and returns: config