code: def role(self, minimal_app_for_api):
      yield create_role(
          minimal_app_for_api,  # type: ignore
          name="Test",
          permissions=[
              (
                  permissions.ACTION_CAN_CREATE,
                  permissions.RESOURCE_CONNECTION,
              ),
          ],
      )
      delete_role(minimal_app_for_api, "Test")
  
file_path: airflow/tests/api_connexion/schemas/test_role_and_permission_schema.py
imports: from __future__ import annotations
  import pytest
  from airflow.api_connexion.schemas.role_and_permission_schema import RoleCollection, role_collection_schema, role_schema
  from airflow.security import permissions
  from tests.test_utils.api_connexion_utils import create_role, delete_role
label_desc: Use image node_id 1 for calling the TestRoleCollectionItemSchema obj's underlying member method code with example usage: obj.role(minimal_app_for_api) without return types