def METHOD_NAME(minio_inputs, key):
    """Testing for invalid variable types."""
    minio_inputs[key] = ["test"]
    expected_exception_msg = f"{key} must be of type <class 'str'>" \
                             f" but received as {type(minio_inputs[key])}"
    with pytest.raises(TypeError, match=expected_exception_msg):
        upload_to_minio(minio_inputs)