code: def test_new_session(spark):
      sess = glow.register(spark, new_session=False)
      assert sess._jsparkSession.equals(spark._jsparkSession)
  
      sess = glow.register(spark, new_session=True)
      assert not sess._jsparkSession.equals(spark._jsparkSession)
  
imports: import pytest
  from pyspark.sql import Row
  from pyspark.sql.utils import AnalysisException
  import glow
label_desc: Use image node_id 3 for calling a global function with example usage: test_new_session(spark) without return types