def __init__(self, attribute_filter):
self._key_map = dict()<EOL>self._visible_keys = set()<EOL>self._populate_from_filter(attribute_filter)<EOL>
Creates an immutable attribute filter based on a given mutable one.