docs: def encode_metadata_request(cls, topics=(), payloads=None):
          """
          Encode a MetadataRequest
  
          Arguments:
              topics: list of strings
          """
          if payloads is not None:
              topics = payloads
  
          return kafka.protocol.metadata.MetadataRequest[0](topics)