code: def create_tagged_objects(self):
      with self.create_app().app_context():
          # clear tags table
          tags = db.session.query(Tag)
          for tag in tags:
              db.session.delete(tag)
              db.session.commit()
          tags = []
          for cx in range(TAGS_FIXTURE_COUNT):
              tags.append(
                  self.insert_tag(
                      name=f"example_tag_{cx}",
                      tag_type="custom",
                  )
              )
          # clear tagged objects table
          tagged_objects = db.session.query(TaggedObject)
          for tagged_obj in tagged_objects:
              db.session.delete(tagged_obj)
              db.session.commit()
          tagged_objects = []
          dashboard_id = 1
          for tag in tags:
              tagged_objects.append(
                  self.insert_tagged_object(
                      object_id=dashboard_id,
                      object_type=ObjectType.dashboard,
                      tag_id=tag.id,
                  )
              )
  
          yield tagged_objects
  
imports: from operator import and_
  from unittest.mock import patch
  import pytest
  from superset.daos.exceptions import DAOCreateFailedError, DAOException
  from superset.models.slice import Slice
  from superset.models.sql_lab import SavedQuery
  from superset.daos.tag import TagDAO
  from superset.tags.exceptions import InvalidTagNameError
  from superset.tags.models import ObjectType, Tag, TaggedObject
  from tests.integration_tests.tags.api_tests import TAGS_FIXTURE_COUNT
  import tests.integration_tests.test_app
  from superset import db, security_manager
  from superset.daos.dashboard import DashboardDAO
  from superset.models.dashboard import Dashboard
  from tests.integration_tests.base_tests import SupersetTestCase
  from tests.integration_tests.fixtures.world_bank_dashboard import load_world_bank_dashboard_with_slices, load_world_bank_data
  from tests.integration_tests.fixtures.tags import with_tagging_system_feature
label_desc: Use image node_id 4 for calling the TestTagsDAO obj's underlying member method code with example usage: obj.create_tagged_objects() without return types