When used in automated pipelines, it is very difficult to debug without validation of inputs and proper error handling and reporting. Need to make at least the following checks
- Structure validation:
- Structure is not None,
- It is a list
- each element is a tuple
- Data is a valid dataframe