def get_parametrized_fixture_keys(item, scopenum):
assert scopenum < scopenum_function  <EOL>try:<EOL><INDENT>cs = item.callspec<EOL><DEDENT>except AttributeError:<EOL><INDENT>pass<EOL><DEDENT>else:<EOL><INDENT>for argname, param_index in sorted(cs.indices.items()):<EOL><INDENT>if cs._arg2scopenum[argname] != scopenum:<EOL><INDENT>continue<EOL><DEDENT>if scopenum == <NUM_LIT:0>:  <EOL><INDENT>key = (argname, param_index)<EOL><DEDENT>elif scopenum == <NUM_LIT:1>:  <EOL><INDENT>key = (argname, param_index, item.fspath.dirpath())<EOL><DEDENT>elif scopenum == <NUM_LIT:2>:  <EOL><INDENT>key = (argname, param_index, item.fspath)<EOL><DEDENT>elif scopenum == <NUM_LIT:3>:  <EOL><INDENT>key = (argname, param_index, item.fspath, item.cls)<EOL><DEDENT>yield key<EOL><DEDENT><DEDENT>
return list of keys for all parametrized arguments which match
    the specified scope.