def unpack_env_kwarg(self, kwargs: T.Union[(build.EnvironmentVariables, T.Dict[(str, 'TYPE_var')], T.List['TYPE_var'], str)]) -> build.EnvironmentVariables:
    envlist = kwargs.get('env')
    if (envlist is None):
        return build.EnvironmentVariables()
    msg = ENV_KW.validator(envlist)
    if msg:
        raise InvalidArguments(f'"env": {msg}')
    return ENV_KW.convertor(envlist)
def unpack_env_kwarg(self, kwargs: T.Union[(build.EnvironmentVariables, T.Dict[(str, 'TYPE_var')], T.List['TYPE_var'], str)]) -> build.EnvironmentVariables:
    envlist = kwargs.get('env')
    if (envlist is None):
        return build.EnvironmentVariables()
    msg = ENV_KW.validator(envlist)
    if msg:
        raise InvalidArguments(f'"env": {msg}')
    return ENV_KW.convertor(envlist)