code: def get_iterator_type(script_settings, subscripts={}):
          
  
          if 'iterator_type' in script_settings:
              # figure out the iterator type
              if script_settings['iterator_type'] == 'Loop':
                  iterator_type = 'loop'
              elif script_settings['iterator_type'] == 'Parameter Sweep':
                  iterator_type = 'sweep'
              else:
                  raise TypeError('unknown iterator type')
          else:
              # asign the correct iterator script type
              if 'sweep_param' in script_settings:
                  iterator_type = 'sweep'
              elif 'num_loops' in script_settings:
                  iterator_type = 'loop'
              else:
                  raise TypeError('unknown iterator type')
  
          return iterator_type
docs: figures out the iterator type based on the script settings and (optionally) subscripts
          Args:
              script_settings: iterator_type
              subscripts: subscripts
          Returns: