def _cpinfo_key_worker(task):
cpfile, keyspeclist = task<EOL>keystoget = [x[<NUM_LIT:0>] for x in keyspeclist]<EOL>nonesubs = [x[-<NUM_LIT:2>] for x in keyspeclist]<EOL>nansubs = [x[-<NUM_LIT:1>] for x in keyspeclist]<EOL>for i, k in enumerate(keystoget):<EOL><INDENT>thisk = k.split('<STR_LIT:.>')<EOL>if sys.version_info[:<NUM_LIT:2>] < (<NUM_LIT:3>,<NUM_LIT:4>):<EOL><INDENT>thisk = [(int(x) if x.isdigit() else x) for x in thisk]<EOL><DEDENT>else:<EOL><INDENT>thisk = [(int(x) if x.isdecimal() else x) for x in thisk]<EOL><DEDENT>keystoget[i] = thisk<EOL><DEDENT>keystoget.insert(<NUM_LIT:0>,['<STR_LIT>'])<EOL>nonesubs.insert(<NUM_LIT:0>, '<STR_LIT>')<EOL>nansubs.insert(<NUM_LIT:0>,'<STR_LIT>')<EOL>vals = checkplot_infokey_worker((cpfile, keystoget))<EOL>for val, nonesub, nansub, valind in zip(vals, nonesubs,<EOL>nansubs, range(len(vals))):<EOL><INDENT>if val is None:<EOL><INDENT>outval = nonesub<EOL><DEDENT>elif isinstance(val, float) and not np.isfinite(val):<EOL><INDENT>outval = nansub<EOL><DEDENT>elif isinstance(val, (list, tuple)):<EOL><INDENT>outval = '<STR_LIT:U+002CU+0020>'.join(val)<EOL><DEDENT>else:<EOL><INDENT>outval = val<EOL><DEDENT>vals[valind] = outval<EOL><DEDENT>return vals<EOL>
This wraps `checkplotlist.checkplot_infokey_worker`.

    This is used to get the correct dtype for each element in retrieved results.

    Parameters
    ----------

    task : tuple
        task[0] = cpfile
        task[1] = keyspeclist (infokeys kwarg from `add_cpinfo_to_lclist`)

    Returns
    -------

    dict
        All of the requested keys from the checkplot are returned along with
        their values in a dict.