code: def _validate_obj(obj: Any) -> bool:
      dynamic_sklearn = _get_sklearn()
      return cast(
          bool,
          (
              dynamic_sklearn.base.is_classifier(obj)
              or dynamic_sklearn.base.is_outlier_detector(obj)
              or dynamic_sklearn.base.is_regressor(obj)
          ),
      )
  
imports: import os
  import shutil
  import sys
  from typing import TYPE_CHECKING, Any, ClassVar, Generic, List, Optional, Type, TypeVar, Union, cast
  import wandb
  from wandb import util
  from wandb.sdk.lib import runid
  from wandb.sdk.lib.hashutil import md5_file_hex
  from wandb.sdk.lib.paths import LogicalPath
  from ._private import MEDIA_TMP
  from .base_types.wb_value import WBValue
label_desc: Use image node_id 2 for calling the _SklearnSavedModel obj's underlying member method code with example usage: obj._validate_obj(obj) and returns: cast