code: def _glyph_for_complex_pattern(self, pattern):
          
          # Make the main glyph for the agent
          monomer_glyphs = []
          for monomer_pattern in pattern.monomer_patterns:
              glyph = self._glyph_for_monomer_pattern(monomer_pattern)
              monomer_glyphs.append(glyph)
  
          if len(monomer_glyphs) > 1:
              pattern.matches_key = lambda: str(pattern)
              agent_id = self._make_agent_id(pattern)
              complex_glyph = \
                  emaker.glyph(emaker.bbox(**self.complex_style),
                               class_('complex'), id=agent_id)
              for glyph in monomer_glyphs:
                  glyph.attrib['id'] = agent_id + glyph.attrib['id']
                  complex_glyph.append(glyph)
              return complex_glyph
          return monomer_glyphs[0]
docs: Add glyph and member glyphs for a PySB ComplexPattern.