def METHOD_NAME(self, read_buffer: ReadBuffer, args):
    if args is None:
        raise PlcRuntimeException(
            "Wrong number of arguments, expected 2, but got None"
        )
    elif args.length != 2:
        raise PlcRuntimeException(
            "Wrong number of arguments, expected 2, but got " + str(len(args))
        )
    driverType: DriverType = 0
    if isinstance(args[0], DriverType):
        driverType = DriverType(args[0])
    elif isinstance(args[0], str):
        driverType = DriverType(str(args[0]))
    else:
        raise PlcRuntimeException(
            "Argument 0 expected to be of type DriverType or a string which is parseable but was "
            + args[0].getClass().getName()
        )
    response: bool = False
    if isinstance(args[1], bool):
        response = bool(args[1])
    elif isinstance(args[1], str):
        response = bool(str(args[1]))
    else:
        raise PlcRuntimeException(
            "Argument 1 expected to be of type bool or a string which is parseable but was "
            + args[1].getClass().getName()
        )
    return self.static_parse_context(read_buffer, driverType, response)