One of our kids live in an apartment complex that does this. In the lease agreement you sign a dog owner portion , if you fail to clean up after your dog you get a $500.00 clean up cost etc bill.
My brother rented a townhouse in Eden Prairie Minnesota, a suburb of Minneapolis, a few years ago. He had to provide a sample.