code: def access_controls(self, access_controls: Optional[Iterable[AccessControl]]):
          
          if access_controls is not None:
              access_controls = set(access_controls)
          self._access_controls = access_controls
docs: Sets the access controls associated to this entity.
          :param access_controls: the access controls (immutable) or `None`