def METHOD_NAME(self, arguments: Sequence[str]) -> Dict[str, Any]:
    from robot.run import RobotFramework  # type:ignore
    arguments = list(arguments)
    # Add the target as an arg (which is to be ignored as
    # we just want the options in this API).
    arguments.append("<ignore>")
    opts, _ = RobotFramework().parse_arguments(
        arguments,
    )
    return opts