nodes: 0, module; 1, function_definition; 2, function_name:filterAcceptsRow; 3, parameters; 4, block; 5, identifier:self; 6, identifier:row; 7, identifier:parentindex; 8, expression_statement; 9, if_statement; 10, if_statement; 11, expression_statement; 12, expression_statement; 13, if_statement; 14, comment:"""Return True, if the filter accepts the given row of the parent
  
          :param row: the row to filter
          :type row: :class:`int`
          :param parentindex: the parent index
          :type parentindex: :class:`QtCore.QModelIndex`
          :returns: True, if the filter accepts the row
          :rtype: :class:`bool`
          :raises: None
          """; 15, not_operator; 16, block; 17, call; 18, block; 19, else_clause; 20, assignment; 21, assignment; 22, not_operator; 23, block; 24, else_clause; 25, call; 26, return_statement; 27, attribute; 28, argument_list; 29, expression_statement; 30, block; 31, identifier:i; 32, call; 33, identifier:reftrack; 34, call; 35, identifier:reftrack; 36, return_statement; 37, block; 38, attribute; 39, argument_list; 40, False; 41, identifier:parentindex; 42, identifier:isValid; 43, assignment; 44, expression_statement; 45, attribute; 46, argument_list; 47, attribute; 48, argument_list; 49, True; 50, return_statement; 51, call; 52, identifier:filterAcceptsRow; 53, identifier:row; 54, identifier:parentindex; 55, identifier:m; 56, call; 57, assignment; 58, identifier:m; 59, identifier:index; 60, identifier:row; 61, integer:18; 62, identifier:parentindex; 63, identifier:i; 64, identifier:data; 65, identifier:REFTRACK_OBJECT_ROLE; 66, call; 67, identifier:super; 68, argument_list; 69, attribute; 70, argument_list; 71, identifier:m; 72, call; 73, attribute; 74, argument_list; 75, identifier:ReftrackSortFilterModel; 76, identifier:self; 77, identifier:parentindex; 78, identifier:model; 79, attribute; 80, argument_list; 81, identifier:self; 82, identifier:filter_accept_reftrack; 83, identifier:reftrack; 84, identifier:self; 85, identifier:sourceModel
code: def filterAcceptsRow(self, row, parentindex):
          """Return True, if the filter accepts the given row of the parent
  
          :param row: the row to filter
          :type row: :class:`int`
          :param parentindex: the parent index
          :type parentindex: :class:`QtCore.QModelIndex`
          :returns: True, if the filter accepts the row
          :rtype: :class:`bool`
          :raises: None
          """
          if not super(ReftrackSortFilterModel, self).filterAcceptsRow(row, parentindex):
              return False
          if parentindex.isValid():
              m = parentindex.model()
          else:
              m = self.sourceModel()
  
          i = m.index(row, 18, parentindex)
          reftrack = i.data(REFTRACK_OBJECT_ROLE)
          if not reftrack:
              return True
          else:
              return self.filter_accept_reftrack(reftrack)