I have to write a function in python that should accept the path of the data set which will be in string, the source format