Please add a docstring which describes what `only_allocated` and `all_properties` arguments do.