code: def findParent(self, name=None, attrs={}, **kwargs):
          
          # NOTE: We can't use _findOne because findParents takes a different
          # set of arguments.
          r = None
          l = self.findParents(name, attrs, 1)
          if l:
              r = l[0]
          return r
docs: Returns the closest parent of this Tag that matches the given
          criteria.