code: def teardown(self):
          
          self.containers._teardown()
          self.networks._teardown()
          self.volumes._teardown()
  
          # We need to close the underlying APIClient explicitly to avoid
          # ResourceWarnings from unclosed HTTP connections.
          self._client.api.close()
docs: Clean up all resources when we're done with them.