code: def get_sqlite_session_with_root(tmpdir):
      sqlite_filepath = os.path.join(tmpdir, "sqlite.db")
      engine = create_engine(
          f"sqlite:///{sqlite_filepath}", echo=True, future=True
      )
      Session = sessionmaker()
      Session.configure(bind=engine)
      session = Session()
      Base.metadata.create_all(engine)
      session.commit()
  
      root_dcn = DataClassNode(RootDataclass())
      root = ScopedLocationTreeNode(root_dcn, None)
      session.add(root)
  
      session.commit()
      return session, root
  
file_path: Neuraxle/testing_neuraxle/metaopt/test_database_repo.py
imports: import os
  import pytest
  from neuraxle.metaopt.data.vanilla import DEFAULT_CLIENT, DEFAULT_PROJECT, ClientDataclass, ProjectDataclass, RootDataclass, ScopedLocation
  from neuraxle.metaopt.repositories.db import Base, ClientNode, DataClassNode, ProjectNode, ScopedLocationTreeNode, SQLLiteHyperparamsRepository
  from sqlalchemy import and_, create_engine
  from sqlalchemy.orm import sessionmaker
  from testing_neuraxle.metaopt.test_automl_dataclasses import SOME_PROJECT_DATACLASS
label_desc: Use image node_id 1 for calling a global function with example usage: get_sqlite_session_with_root(tmpdir) and returns: session,  root