class_docstr: Detects offensive language using a list of offensive language and phrases from
  https://github.com/LDNOOBW.
class_docstr_tok: ["Detects","offensive","language","using","a","list","of","offensive","language","and","phrases","from","https",":","\/\/github.com\/LDNOOBW","."]
docstr: Check if words from the sequence are in the trie.
  
  This checks phrases made from toks[i], toks[i:i+2] ... toks[i:i + self.max_len]
docstr_tok: ["Check","if","words","from","the","sequence","are","in","the","trie",".","This","checks","phrases","made","from","toks","[","i","]",",","toks","[","i",":","i+2","]","...","toks","[","i",":","i","+","self.max_len","]"]
code: def _check_sequence(self, toks, idx, node):
      """
      Check if words from the sequence are in the trie.
  
      This checks phrases made from toks[i], toks[i:i+2] ... toks[i:i + self.max_len]
      """
      right = min(idx + self.max_len, len(toks))
      for i in range(idx, right):
          if toks[i] in node:
              node = node[toks[i]]
              if self.END in node:
                  return " ".join(toks[j] for j in range(idx, i + 1))
          else:
              break
      return False
  
imports: from parlai.agents.transformer.transformer import TransformerClassifierAgent
  from parlai.core.agents import create_agent, create_agent_from_shared
  from parlai.tasks.dialogue_safety.agents import OK_CLASS, NOT_OK_CLASS
  from parlai.utils.typing import TShared
  from parlai.utils.io import PathManager
  import parlai.utils.logging
  import os
label_desc: Use image node_id 4 for calling the OffensiveStringMatcher obj's underlying member method code with example usage: obj._check_sequence(toks, idx, node) and returns: False, str