class_docstr: Transaction managers.
class_docstr_tok: ["Transaction","managers","."]
docstr: Add a transaction.
  
  Arguments:
      transaction -- A transaction as an iterable object (eg. ['A', 'B']).
docstr_tok: ["Add","a","transaction",".","Arguments",":","transaction","--","A","transaction","as","an","iterable","object","(","eg",".","[","'","A","'",",","'","B","'","]",")","."]
code: def add_transaction(self, transaction):
      """
      Add a transaction.
  
      Arguments:
          transaction -- A transaction as an iterable object (eg. ['A', 'B']).
      """
      for item in transaction:
          if item not in self.__transaction_index_map:
              self.__items.append(item)
              self.__transaction_index_map[item] = set()
          self.__transaction_index_map[item].add(self.__num_transaction)
      self.__num_transaction += 1
  
imports: import sys
  import csv
  import argparse
  import json
  import os
  from collections import namedtuple
  from itertools import combinations
  from itertools import chain
label_desc: Use image node_id 2 for calling the TransactionManager obj's underlying member method code with example usage: obj.add_transaction(transaction) without return types