code: def should_create_generated_test(
      algorithm: Type[Attribution],
  ) -> bool:
      if issubclass(algorithm, Lime):
          try:
              import sklearn  # noqa: F401
  
              assert (
                  sklearn.__version__ >= "0.23.0"
              ), "Must have sklearn version 0.23.0 or higher to use "
              "sample_weight in Lasso regression."
              return True
          except (ImportError, AssertionError):
              return False
      return True
  
file_path: captum/tests/attr/helpers/gen_test_utils.py
imports: import typing
  from typing import Any, cast, Dict, List, Tuple, Type, Union
  from captum.attr._core.lime import Lime
  from captum.attr._models.base import _get_deep_layer_name
  from captum.attr._utils.attribution import Attribution
  from torch.nn import Module
label_desc: Use image node_id 3 for calling a global function with example usage: should_create_generated_test(algorithm) and returns: True, True, False