import hrdt_datasets.dataset as d print(d.__file__) with open(d.__file__) as f: print([line for line in f if "image_corrupt" in line])