code: def get_min_scipy_version(min_python, min_numpy):
      """
      Determine the SciPy version compatibility
      """
      df = (
          pd.read_html(
              "https://docs.scipy.org/doc/scipy/dev/toolchain.html#numpy"
          )[1]
          .rename(columns=lambda x: x.replace(" ", "_"))
          .replace({".x": ""}, regex=True)
          .pipe(
              lambda df: df.assign(
                  SciPy_version=df.SciPy_version.str.replace(
                      "\d\/", "", regex=True  # noqa
                  )
              )
          )
          .query('`Python_versions`.str.contains("2.7") == False')
          .pipe(
              lambda df: df.assign(
                  MIN_PYTHON_SPEC=df.Python_versions.str.split(",")
                  .str[0]
                  .apply(SpecifierSet)
              )
          )
          .pipe(
              lambda df: df.assign(
                  MAX_PYTHON_SPEC=df.Python_versions.str.split(",")
                  .str[1]
                  .apply(SpecifierSet)
              )
          )
          .pipe(
              lambda df: df.assign(
                  MIN_NUMPY_SPEC=df.NumPy_versions.str.split(",")
                  .str[0]
                  .apply(SpecifierSet)
              )
          )
          .pipe(
              lambda df: df.assign(
                  MAX_NUMPY_SPEC=df.NumPy_versions.str.split(",")
                  .str[1]
                  .apply(SpecifierSet)
              )
          )
          .assign(
              COMPATIBLE=lambda row: row.apply(
                  check_scipy_compatibility,
                  axis=1,
                  args=(Version(min_python), Version(min_numpy)),
              )
          )
          .query("COMPATIBLE == True")
          .pipe(
              lambda df: df.assign(
                  MINOR=df.SciPy_version.str.split(".").str[1]
              )
          )
          .pipe(
              lambda df: df.assign(
                  PATCH=df.SciPy_version.str.split(".").str[2]
              )
          )
          .sort_values(["MINOR", "PATCH"], ascending=[False, True])
          .iloc[-1]
      )
      return df.SciPy_version
  
file_path: stumpy/min.py
imports: import argparse
  import pandas
  from packaging.specifiers import SpecifierSet
  from packaging.version import Version
label_desc: Use image node_id 5 for calling a global function with example usage: get_min_scipy_version(min_python, min_numpy) and returns: df