code: def get_tag(obj, tag_name):
      """Shorthand for get_tag vs get_class_tag, obj can be class or object."""
      if isclass(obj):
          return obj.get_class_tag(tag_name)
      else:
          return obj.get_tag(tag_name)
  
imports: from copy import deepcopy
  from inspect import isclass
  import numpy
  import pandas
  from sktime.base import BaseObject
  from sktime.datatypes import mtype_to_scitype
  from sktime.transformations.base import _PanelToPanelTransformer
  from sktime.utils._testing.estimator_checks import _make_primitives, _make_tabular_X
  from sktime.utils._testing.forecasting import _make_series
  from sktime.utils._testing.hierarchical import _make_hierarchical
  from sktime.utils._testing.panel import _make_classification_y, _make_panel_X
  from sktime.utils._testing.scenarios import TestScenario
label_desc: Use image node_id 2 for calling a global function with example usage: get_tag(obj, tag_name) and returns: obj, obj