def METHOD_NAME(parties, show_events):
  scale = 9.0 / len(parties[0])
  doc = r'\tikzstyle{symC}=[rectangle, draw=none, fill=black]' \
        r'\tikzstyle{symH}=[rectangle, draw=none, fill=black!50]' \
        r'\tikzstyle{symD}=[rectangle, draw=none, fill=black!30]' \
        r'\tikzstyle{symX}=[rectangle, draw=none, fill=white]' \
        r'\tikzstyle{symU}=[rectangle, draw=none, fill=red]' \
        r'\tikzstyle{frame}=[rectangle, draw=black, fill=none]' \
        r'\begin{tikzpicture}[x=%fcm]'%scale
  i = 0.0
  for p in parties:
    doc += r'\begin{{scope}}[yshift=-{0}cm,y=0.5cm]'.format(i)
    doc += p.tikz(show_events)
    doc += r'\end{scope}'
    i += 0.5
  return r'''