original_docstring: 
          replaces the given variable for a node in 'current_variables' state
          with a new variable
  
          NOTE: this is design for use with scan, so that non-sequence variables
          can be replaced by their sequence versions
          
docstring: replaces the given variable for a node in 'current_variables' state
  with a new variable
  
  this is design for use with scan, so that non-sequence variables
  can be replaced by their sequence versions
docstring_tokens: replaces the given variable for a node in ' current_variables ' state with a new variable this is design for use with scan so that non - sequence variables can be replaced by their sequence versions
code: def replace_variable(self, name, new_variable):
          """
          replaces the given variable for a node in 'current_variables' state
          with a new variable
  
          NOTE: this is design for use with scan, so that non-sequence variables
          can be replaced by their sequence versions
          """
          assert name in self._state['original_variables']
          self._state['current_variables'][name] = new_variable
          return new_variable
code_tokens: def replace_variable ( self , name , new_variable ) : assert name in self . _state [ 'original_variables' ] self . _state [ 'current_variables' ] [ name ] = new_variable return new_variable
short_docstring: replaces the given variable for a node in 'current_variables' state
  with a new variable
short_docstring_tokens: replaces the given variable for a node in ' current_variables ' state with a new variable
comment: """
          replaces the given variable for a node in 'current_variables' state
          with a new variable
  
          NOTE: this is design for use with scan, so that non-sequence variables
          can be replaced by their sequence versions
          """