code: def _str2cls(
      full_cls_str: str,
  ) -> type[diffusers.DiffusionPipeline | diffusers.SchedulerMixin]:
      import importlib
  
      module_name, _, class_name = full_cls_str.rpartition(".")
  
      # if user only provide something like "StableDiffusionpipeline"
      # with out the module name, we will try the sane default
      if not module_name:
          module_name = "diffusers"
  
      module = importlib.import_module(module_name)
      cls = getattr(module, class_name)
      return cls
  
imports: from __future__ import annotations
  import logging
  import os
  import shutil
  import typing
  from typing import TYPE_CHECKING
  import attr
  import bentoml
  from bentoml import Tag
  from bentoml.exceptions import BentoMLException
  from bentoml.exceptions import MissingDependencyException
  from bentoml.exceptions import NotFound
  from bentoml.models import ModelContext
  from ..models.model import PartialKwargsModelOptions
  from .utils.transformers import extract_commit_hash
label_desc: Use image node_id 4 for calling a global function with example usage: _str2cls(full_cls_str) and returns: cls