@staticmethod
def machine_from_native_kwarg(kwargs: T.Dict[(str, T.Any)]) -> MachineChoice:
    native = kwargs.get('native', False)
    if (not isinstance(native, bool)):
        raise InvalidArguments('Argument to "native" must be a boolean.')
    return (MachineChoice.BUILD if native else MachineChoice.HOST)
@staticmethod
def machine_from_native_kwarg(kwargs: T.Dict[(str, T.Any)]) -> MachineChoice:
    native = kwargs.get('native', False)
    if (not isinstance(native, bool)):
        raise InvalidArguments('Argument to "native" must be a boolean.')
    return (MachineChoice.BUILD if native else MachineChoice.HOST)