class_docstr: Transaction managers.
class_docstr_tok: ["Transaction","managers","."]
docstr: Initialize.
  
  Arguments:
      transactions -- A transaction iterable object
                      (eg. [['A', 'B'], ['B', 'C']]).
docstr_tok: ["Initialize",".","Arguments",":","transactions","--","A","transaction","iterable","object","(","eg",".","[","[","'","A","'",",","'","B","'","]",",","[","'","B","'",",","'","C","'","]","]",")","."]
code: def __init__(self, transactions):
      """
      Initialize.
  
      Arguments:
          transactions -- A transaction iterable object
                          (eg. [['A', 'B'], ['B', 'C']]).
      """
      self.__num_transaction = 0
      self.__items = []
      self.__transaction_index_map = {}
  
      for transaction in transactions:
          self.add_transaction(transaction)
  
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 1 to create a new TransactionManager object from inherited base classes: object with example: obj = TransactionManager(transactions)