UP: Wrote a docstring for subsample.py