code: def convert(self, element):
          
          if isinstance(element, self.base_link_type):
              return element
          for converter in self.converters:
              link = converter(element)
              if link is not NotImplemented:
                  return link
          raise TypeError('%r cannot be converted to a chainlink' % element)
docs: Convert an element to a chainlink