class_docstr: DAG details.
class_docstr_tok: ["DAG","details","."]
docstr: Dump tags as objects.
docstr_tok: ["Dump","tags","as","objects","."]
code: def get_tags(obj: DAG):
      """Dump tags as objects."""
      tags = obj.tags
      if tags:
          return [DagTagSchema().dump({"name": tag}) for tag in tags]
      return []
  
imports: from __future__ import annotations
  from typing import TYPE_CHECKING, NamedTuple
  from itsdangerous import URLSafeSerializer
  from marshmallow import Schema, fields
  from marshmallow_sqlalchemy import SQLAlchemySchema, auto_field
  from airflow.api_connexion.schemas.common_schema import ScheduleIntervalSchema, TimeDeltaSchema, TimezoneField
  from airflow.configuration import conf
  from airflow.models.dag import DagModel, DagTag
label_desc: Use image node_id 2 for calling the DAGDetailSchema obj's underlying member method code with example usage: obj.get_tags(obj) and returns: list, unknown