def _get_partial_string_timestamp_match_key(self, key, labels):
if isinstance(labels, MultiIndex):<EOL><INDENT>if (isinstance(key, str) and labels.levels[<NUM_LIT:0>].is_all_dates):<EOL><INDENT>key = tuple([key] + [slice(None)] * (len(labels.levels) - <NUM_LIT:1>))<EOL><DEDENT>if isinstance(key, tuple):<EOL><INDENT>new_key = []<EOL>for i, component in enumerate(key):<EOL><INDENT>if (isinstance(component, str) and<EOL>labels.levels[i].is_all_dates):<EOL><INDENT>new_key.append(slice(component, component, None))<EOL><DEDENT>else:<EOL><INDENT>new_key.append(component)<EOL><DEDENT><DEDENT>key = tuple(new_key)<EOL><DEDENT><DEDENT>return key<EOL>
Translate any partial string timestamp matches in key, returning the
        new key (GH 10331)