<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _eval_xpath(self, xpath):
 """ Evaluates xpath expressions. Either string or XPath object. """

        if isinstance(xpath, etree.XPath):
            result = xpath(self._dataObject)
        else:
            result = self._dataObject.xpath(xpath,namespaces=self._namespaces)

        #print 'Xpath expression:', xpath
        #print etree.tostring(self._dataObject)
        #print 'Got Result: \n%s\n   End Result' % result

        return result