parameters: (self, state: c_void_p, f: FunctionType)
docstring: This function allows a client to register a function to be called back by EnergyPlus at the beginning of
          each environment.
  
          :param state: An active EnergyPlus "state" that is returned from a call to `api.state_manager.new_state()`.
          :param f: A python function which takes one argument, the current state instance, and returns nothing
          :return: Nothing
docstring_summary: This function allows a client to register a function to be called back by EnergyPlus at the beginning of
          each environment.
docstring_tokens: This function allows a client to register a function to be called back by EnergyPlus at the beginning of each environment .
function: def callback_begin_new_environment(self, state: c_void_p, f: FunctionType) -> None:
          """
          This function allows a client to register a function to be called back by EnergyPlus at the beginning of
          each environment.
  
          :param state: An active EnergyPlus "state" that is returned from a call to `api.state_manager.new_state()`.
          :param f: A python function which takes one argument, the current state instance, and returns nothing
          :return: Nothing
          """
          self._check_callback_args(f, 1, 'callback_begin_new_environment')
          cb_ptr = self.py_state_callback_type(f)
          all_callbacks.append(cb_ptr)
          self.api.callbackBeginNewEnvironment(state, cb_ptr)
function_tokens: def callback_begin_new_environment ( self , state : c_void_p , f : FunctionType ) -> None : self . _check_callback_args ( f , 1 , 'callback_begin_new_environment' ) cb_ptr = self . py_state_callback_type ( f ) all_callbacks . append ( cb_ptr ) self . api . callbackBeginNewEnvironment ( state , cb_ptr )