code: def _init_fmtname2wbfmtobj(self, workbook, **kws):
          
          wbfmtdict = [
              kws.get('format_txt0', self.dflt_wbfmtdict[0]),
              kws.get('format_txt1', self.dflt_wbfmtdict[1]),
              kws.get('format_txt2', self.dflt_wbfmtdict[2]),
              kws.get('format_txt3', self.dflt_wbfmtdict[3])]
          fmtname2wbfmtobj = {
              'plain': workbook.add_format(wbfmtdict[0]),
              'plain bold': workbook.add_format(wbfmtdict[3]),
              'very light grey' : workbook.add_format(wbfmtdict[1]),
              'light grey' :workbook.add_format(wbfmtdict[2])}
          # Use a xlsx namedtuple field value to set row color
          ntval2wbfmtdict = kws.get('ntval2wbfmtdict', None)
          if ntval2wbfmtdict is not None:
              for ntval, wbfmtdict in ntval2wbfmtdict.items():
                  fmtname2wbfmtobj[ntval] = workbook.add_format(wbfmtdict)
              if 'ntfld_wbfmt' not in kws:
                  sys.stdout.write("**WARNING: 'ntfld_wbfmt' NOT PRESENT\n")
          return fmtname2wbfmtobj
docs: Initialize fmtname2wbfmtobj.