code: def test_should_log_always_returns_true_in_root_session(
      allow_children,
  ):
      with _TrainingSession(PARENT, allow_children=allow_children) as p:
          assert_session_stack([(None, PARENT)])
          assert p.should_log()
  
      assert_session_stack([])
  
file_path: mlflow/tests/autologging/test_training_session.py
imports: import pytest
  from mlflow.utils.autologging_utils import _get_new_training_session_class
label_desc: Use image node_id 4 for calling a global function with example usage: test_should_log_always_returns_true_in_root_session(allow_children) without return types