@property<EOL><INDENT>def instance(self):<DEDENT>
<EOL>try:<EOL><INDENT>return self._pyfuncitem._testcase<EOL><DEDENT>except AttributeError:<EOL><INDENT>function = getattr(self, "<STR_LIT>", None)<EOL>return getattr(function, "<STR_LIT>", None)<EOL><DEDENT>
instance (can be None) on which test function was collected.