Refactored function with destructuring, updated docstring and error message
Refactored function with destructuring, updated docstring and error message

blueoceanideas/metabase,blueoceanideas/metabase,blueoceanideas/metabase,blueoceanideas/metabase,blueoceanideas/metabase