code: def test_invalid_import():
      uri = Path(__file__).parent / "NoPyfunc"
      with pytest.raises(
          BentoMLException,
          match="does not support the required python_function flavor",
      ):
          _ = bentoml.mlflow.import_model(
              "NoPyfunc", str(uri.resolve())
          )
  
imports: from __future__ import annotations
  import os
  import typing
  from pathlib import Path
  from typing import TYPE_CHECKING
  import mlflow
  import mlflow.models
  import mlflow.sklearn
  import mlflow.tracking
  import numpy
  import psutil
  import pytest
  from sklearn.datasets import load_iris
  from sklearn.neighbors import KNeighborsClassifier
  import bentoml
  from bentoml._internal.models.model import ModelContext
  from bentoml.exceptions import BentoMLException
  from bentoml.exceptions import NotFound
label_desc: Use image node_id 4 for calling a global function with example usage: test_invalid_import() without return types