def _find_cellid(self, code):
from difflib import SequenceMatcher<EOL>maxvalue = <NUM_LIT:0.><EOL>maxid = None<EOL>for cellid, c in self.cellids.items():<EOL><INDENT>matcher = SequenceMatcher(a=c, b=code)<EOL>ratio = matcher.quick_ratio()<EOL>if ratio > maxvalue and ratio > <NUM_LIT:0.5>:<EOL><INDENT>maxid, maxvalue = cellid, ratio<EOL><DEDENT><DEDENT>return maxid<EOL>
Determines the most similar cell (if any) to the specified code. It
        must have at least 50% overlap ratio and have been a loop-intercepted
        cell previously.

        Args:
            code (str): contents of the code cell that were executed.