code: def test_describe_configs_mixed_resources_returns_configs(
      topic, kafka_admin_client
  ):
      """Tests that describe config returns configs for mixed resource types (topic + broker)"""
      broker_id = kafka_admin_client._client.cluster._brokers[0].nodeId
      configs = kafka_admin_client.describe_configs(
          [
              ConfigResource(ConfigResourceType.TOPIC, topic),
              ConfigResource(ConfigResourceType.BROKER, broker_id),
          ]
      )
  
      assert len(configs) == 2
  
      for config in configs:
          assert (
              config.resources[0][2] == ConfigResourceType.TOPIC
              and config.resources[0][3] == topic
          ) or (
              config.resources[0][2] == ConfigResourceType.BROKER
              and config.resources[0][3] == str(broker_id)
          )
          assert len(config.resources[0][4]) > 1
  
file_path: kafka-python/test/test_admin_integration.py
imports: import pytest
  from logging import info
  from test.testutil import env_kafka_version, random_string
  from threading import Event, Thread
  from time import time, sleep
  from kafka.admin import ACLFilter, ACLOperation, ACLPermissionType, ResourcePattern, ResourceType, ACL, ConfigResource, ConfigResourceType
  from kafka.errors import NoError, GroupCoordinatorNotAvailableError, NonEmptyGroupError, GroupIdNotFoundError
label_desc: Use image node_id 4 for calling a global function with example usage: test_describe_configs_mixed_resources_returns_configs(topic, kafka_admin_client) without return types