parameters: (self, old_positions, new_positions)
return_statement: return new_positions
docstring: If agents collide, they stay at their old locations
docstring_summary: If agents collide, they stay at their old locations
docstring_tokens: If agents collide they stay at their old locations
function: def _handle_collisions(self, old_positions, new_positions):
          """If agents collide, they stay at their old locations"""
          if self.is_transition_collision(old_positions, new_positions):
              return old_positions
          return new_positions
function_tokens: def _handle_collisions ( self , old_positions , new_positions ) : if self . is_transition_collision ( old_positions , new_positions ) : return old_positions return new_positions