def close(self, reply_code=0, reply_text='', class_id=0, method_id=0,
              disconnect=False):
        self._close_info = {
            'reply_code': reply_code,
            'reply_text': reply_text,
            'class_id': class_id,
            'method_id': method_id
        }
        if disconnect:
            self._closed = True
            self.disconnect()
            self._callback_close()
        else:
            self._channels[0].close()
Save all related instances before or after current instance
dataset/ETHPy150Open agoragames/haigha/haigha/connection.py/Connection.close--crossover with--dataset/ETHPy150Open ramusus/django-twitter-api/twitter_api/models.py/TwitterModel.save