code: def get_operation_tags(
      blueprint: APIBlueprint, blueprint_name: str
  ) -> t.List[str]:
      """Get operation tag from blueprint object."""
      tags: t.List[str]
      if blueprint.tag is not None:
          if isinstance(blueprint.tag, dict):
              tags = [blueprint.tag["name"]]
          else:
              tags = [blueprint.tag]
      else:
          tags = [blueprint_name.title()]
      return tags
  
file_path: apiflask/src/apiflask/openapi.py
imports: from __future__ import annotations
  import typing
  from .security import HTTPBasicAuth
  from .security import HTTPTokenAuth
  from .types import HTTPAuthType
label_desc: Use image node_id 2 for calling a global function with example usage: get_operation_tags(blueprint, blueprint_name) and returns: tags