code: def get_tag_from_model_func(func, tag, default=None):
      """
      Function returns the tags from the model that function `func` is bound to.
  
      Parameters
      ----------
      func: object
          Function to check whether the object it is bound to has a _get_tags
          attribute, and return tags from it.
      tag: str
          Tag that will be returned if exists
      default: object  (default = None)
          Value that will be returned if tags cannot be fetched.
      """
      tags_fn = getattr(
          getattr(func, "__self__", None), "_get_tags", None
      )
  
      if tags_fn is not None:
          tag_value = tags_fn().get(tag)
          result = tag_value if tag_value is not None else default
  
          return result
  
      return default
  
file_path: cuml/python/cuml/explainer/common.py
imports: from cuml.internals.base import Base
  from cuml.internals.input_utils import input_to_cupy_array
  from pylibraft.common.handle import Handle
  from cuml.internals.safe_imports import gpu_only_import
label_desc: Use image node_id 1 for calling a global function with example usage: get_tag_from_model_func(func, tag, default) and returns: default, result