code: def reset(self):
          '''
          Reset the state of the market (attributes in sow_vars, etc) to some
          user-defined initial state, and erase the histories of tracked variables.
  
          Parameters
          ----------
          none
  
          Returns
          -------
          none
          '''
          for var_name in self.track_vars: # Reset the history of tracked variables
              setattr(self,var_name + '_hist',[])
          for var_name in self.sow_vars: # Set the sow variables to their initial levels
              initial_val = getattr(self,var_name + '_init')
              setattr(self,var_name,initial_val)
          for this_type in self.agents: # Reset each AgentType in the market
              this_type.reset(f reset(self):
          '''
          Reset the state of the market (attributes in sow_vars, etc) to some
          user-defined initial state, and erase the histories of tracked variables.
  
          Parameters
          ----------
          none
  
          Returns
          -------
          none
          '''
          for var_name in self.track_vars: # Reset the history of tracked variables
              setattr(self,var_name + '_hist',[])
          for var_name in self.sow_vars: # Set the sow variables to their initial levels
              initial_val = getattr(self,var_name + '_init')
              setattr(self,var_name,initial_val)
          for this_type in self.agents: # Reset each AgentType in the market
              this_type.reset()
docs: Reset the state of the market (attributes in sow_vars, etc) to some
          user-defined initial state, and erase the histories of tracked variables.
  
          Parameters
          ----------
          none
  
          Returns
          -------
          none