code: def write_bsedebug(basis):
      '''Converts a basis set to BSE Debug format
      '''
  
      s = ''
  
      for el, eldata in basis['elements'].items():
          s += element_data_str(el, eldata)
      return f write_bsedebug(basis):
      '''Converts a basis set to BSE Debug format
      '''
  
      s = ''
  
      for el, eldata in basis['elements'].items():
          s += element_data_str(el, eldata)
      return s
docs: Converts a basis set to BSE Debug format