def resolve_fixture_function(fixturedef, request):
fixturefunc = fixturedef.func<EOL>if fixturedef.unittest:<EOL><INDENT>if request.instance is not None:<EOL><INDENT>fixturefunc = fixturedef.func.__get__(request.instance)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>if request.instance is not None:<EOL><INDENT>fixturefunc = getimfunc(fixturedef.func)<EOL>if fixturefunc != fixturedef.func:<EOL><INDENT>fixturefunc = fixturefunc.__get__(request.instance)<EOL><DEDENT><DEDENT><DEDENT>return fixturefunc<EOL>
Gets the actual callable that can be called to obtain the fixture value, dealing with unittest-specific
    instances and bound methods.