async def METHOD_NAME(host="localhost", port=5020):
    """Run versions of read coil."""
    with ModbusClient(host=host, port=port, framer=ModbusSocketFramer) as client:
        await client.connect()
        # new modbus function code.
        client.register(CustomModbusResponse)
        request = CustomModbusRequest(32, slave=1)
        result = await client.execute(request)
        print(result)
        # inherited request
        request = Read16CoilsRequest(32, slave=1)
        result = await client.execute(request)
        print(result)