def METHOD_NAME(self, address_header: Any) -> str:
    if isinstance(address_header, List):
        return str(address_header[0])
    if isinstance(address_header, str):
        return address_header
    raise ValueError("Incompatible header format '{}'", address_header)