def check_or_set_keys(*args: str, **kwargs: Dict[str, str]) -> None:
    """
    Check various sources of api configuration values like secret keys and set
    env variables for each of them. We use env variables as the canonical
    storage of these keys, regardless of how they were specified. Values can
    also be specified explicitly to this method. Example:
    ```python
    from trulens.core.utils.keys import check_or_set_keys

    check_or_set_keys(
        OPENAI_API_KEY="to fill in",
        HUGGINGFACE_API_KEY="to fill in"
    )
    ```
    """

    kvals = _collect_keys(*args, **kwargs)
    for k in list(args) + list(kwargs.keys()):
        v = kvals.get(k)
        _check_key(k, v=v)
        if v:
            values_to_redact.add(v)
            os.environ[k] = v

    Check various sources of api configuration values like secret keys and set
    env variables for each of them. We use env variables as the canonical
    storage of these keys, regardless of how they were specified. Values can
    also be specified explicitly to this method. Example:
    ```python
    from trulens.core.utils.keys import check_or_set_keys

    check_or_set_keys(
        OPENAI_API_KEY="to fill in",
        HUGGINGFACE_API_KEY="to fill in"
    )
    ```
    
src/core/trulens/core/utils/keys.py