code: def return_empty_sngl(nones=False):
      
  
      sngl = lsctables.SnglInspiral()
      cols = lsctables.SnglInspiralTable.validcolumns
      if nones:
          for entry in cols:
              setattr(sngl, entry, None)
      else:
          for entry in cols.keys():
              if cols[entry] in ['real_4','real_8']:
                  setattr(sngl,entry,0.)
              elif cols[entry] == 'int_4s':
                  setattr(sngl,entry,0)
              elif cols[entry] == 'lstring':
                  setattr(sngl,entry,'')
              elif entry == 'process_id':
                  sngl.process_id = ilwd.ilwdchar("process:process_id:0")
              elif entry == 'event_id':
                  sngl.event_id = ilwd.ilwdchar("sngl_inspiral:event_id:0")
              else:
                  raise ValueError("Column %s not recognized" %(entry) )
      return sngl
docs: Function to create a SnglInspiral object where all columns are populated
      but all are set to values that test False (ie. strings to '', floats/ints
      to 0, ...). This avoids errors when you try to create a table containing
      columns you don't care about, but which still need populating. NOTE: This
      will also produce a process_id and event_id with 0 values. For most
      applications these should be set to their correct values.
  
      Parameters
      ----------
      nones : bool (False)
          If True, just set all columns to None.
  
      Returns
      --------
      lsctables.SnglInspiral
          The "empty" SnglInspiral object.