code: def test_get_tag():
      """Tests get_tag 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
      """
      object_tags = dict()
      object_tags_keys = FIXTURE_OBJECT_TAGS.keys()
  
      for key in object_tags_keys:
          object_tags[key] = FIXTURE_OBJECT.get_tag(
              key, raise_error=False
          )
  
      object_tag_default = FIXTURE_OBJECT.get_tag(
          "foo", "bar", raise_error=False
      )
      object_tag_defaultNone = FIXTURE_OBJECT.get_tag(
          "bar", raise_error=False
      )
  
      msg = "Inheritance logic in BaseObject.get_tag is incorrect"
  
      for key in object_tags_keys:
          assert object_tags[key] == FIXTURE_OBJECT_TAGS[key], msg
  
      msg = "Default override logic in BaseObject.get_tag is incorrect"
  
      assert object_tag_default == "bar", msg
      assert object_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 4 for calling a global function with example usage: test_get_tag() without return types