code: def _isolate_glossaries(self, word):
      word_segments = [word]
      for gloss in self.glossaries:
          word_segments = [
              out_segments
              for segment in word_segments
              for out_segments in isolate_glossary(segment, gloss)
          ]
      return word_segments
  
imports: from __future__ import unicode_literals, division
  import sys
  import codecs
  import io
  import argparse
  import json
  import re
  from collections import defaultdict
  from io import open
label_desc: Use image node_id 3 for calling the BPE obj's underlying member method code with example usage: obj._isolate_glossaries(word) and returns: word_segments