original_docstring: Create session as needed.
  
          .. note::
  
             Caller is responsible for cleaning up the session after
             all partitions have been processed.
          
docstring: Create session as needed.
  note:.
  
  Caller is responsible for cleaning up the session after
  all partitions have been processed.
docstring_tokens: Create session as needed . note : . Caller is responsible for cleaning up the session after all partitions have been processed .
code: def _get_session(self):
          """Create session as needed.
  
          .. note::
  
             Caller is responsible for cleaning up the session after
             all partitions have been processed.
          """
          if self._session is None:
              session = self._session = self._database.session()
              session.create()
          return self._session
code_tokens: def _get_session ( self ) : if self . _session is None : session = self . _session = self . _database . session ( ) session . create ( ) return self . _session
short_docstring: Create session as needed.
short_docstring_tokens: Create session as needed .
comment: """Create session as needed.
  
          .. note::
  
             Caller is responsible for cleaning up the session after
             all partitions have been processed.
          """