code: def relationship_type(self, name):
          
          try:
              cls = self._relationship_types[name]
          except KeyError:
              cls = self._relationship_types[name] = type(str(name), (Relationship,), {})
          return cls
docs: Obtain a :class:`.Relationship` subclass for a given
          relationship type name.