def _convert_dict_to_list(d):
    """This is to convert a Python dictionary to a list, where
    each list item is a dict with `name` and `value` keys.
    """
    if not isinstance(d, dict):
        raise TypeError("The input parameter `d` is not a dict.")

    env_list = []
    for k, v in d.items():
        env_list.append({"name": str(k), "value": str(v)})
    return env_list