code: def mapLookups(self, lookupMap):
      c = self.__merge_classify_context()
  
      if self.Format in [1, 2]:
          for rs in getattr(self, c.RuleSet):
              if not rs:
                  continue
              for r in getattr(rs, c.Rule):
                  if not r:
                      continue
                  for ll in getattr(r, c.LookupRecord):
                      if not ll:
                          continue
                      ll.LookupListIndex = lookupMap[ll.LookupListIndex]
      elif self.Format == 3:
          for ll in getattr(self, c.LookupRecord):
              if not ll:
                  continue
              ll.LookupListIndex = lookupMap[ll.LookupListIndex]
      else:
          assert 0, "unknown format: %s" % self.Format
  
imports: from fontTools import ttLib
  from fontTools.ttLib.tables.DefaultTable import DefaultTable
  from fontTools.ttLib.tables import otTables
  from fontTools.merge.base import add_method, mergeObjects
  from fontTools.merge.util import *
  import logging
label_desc: Use image node_id 10 for calling a global function with example usage: mapLookups(lookupMap) without return types