code: def gen_id(self, file):
      logical = _logical = make_id(file)
      pos = 1
      while logical in self.filenames:
          logical = "%s.%d" % (_logical, pos)
          pos += 1
      self.filenames.add(logical)
      return logical
  
imports: from _msi import *
  import fnmatch
  import os
  import re
  import string
  import sys
  import warnings
label_desc: Use image node_id 2 for calling the CAB obj's underlying member method code with example usage: obj.gen_id(file) and returns: logical