docs: def setAllowedTypes(self, allowed_types):
          """Set the allowed association types, checking to make sure
          each combination is valid."""
          for (assoc_type, session_type) in allowed_types:
              checkSessionType(assoc_type, session_type)
  
          self.allowed_types = allowed_types