code: def __del__(self):
      if self._is_connected is True:
          self.disconnect()
  
file_path: infinity/python/infinity/remote_thrift/infinity.py
imports: from abc import ABC
  from infinity import InfinityConnection
  from infinity.remote_thrift.client import ThriftInfinityClient
  from infinity.remote_thrift.db import RemoteDatabase
label_desc: Use image node_id 2 for calling the RemoteThriftInfinityConnection obj's underlying member method code with example usage: obj.__del__() without return types