code: def test_get_class_tag():
      """Tests get_class_tag class method of BaseObject for correctness.
  
      Raises
      ------
      AssertError if inheritance logic in get_tag is incorrect
      AssertError if default override logic in get_tag is incorrect
      """
      child_tags = dict()
      child_tags_keys = FIXTURE_CLASSCHILD_TAGS.keys()
  
      for key in child_tags_keys:
          child_tags[key] = FIXTURE_CLASSCHILD.get_class_tag(key)
  
      child_tag_default = FIXTURE_CLASSCHILD.get_class_tag("foo", "bar")
      child_tag_defaultNone = FIXTURE_CLASSCHILD.get_class_tag("bar")
  
      msg = "Inheritance logic in BaseObject.get_class_tag is incorrect"
  
      for key in child_tags_keys:
          assert child_tags[key] == FIXTURE_CLASSCHILD_TAGS[key], msg
  
      msg = "Default override logic in BaseObject.get_class_tag is incorrect"
  
      assert child_tag_default == "bar", msg
      assert child_tag_defaultNone is None, msg
  
imports: from copy import deepcopy
  import pytest
  from sktime.base import BaseEstimator, BaseObject
  from sktime.utils.validation._dependencies import _check_soft_dependencies
label_desc: Use image node_id 2 for calling a global function with example usage: test_get_class_tag() without return types