code: def test_safe_print():
      """[Utils] safe_print: prints correctly."""
      l = Logger()
      utils.safe_print("test", file=l)
      assert l.log[0] == "test"
  
imports: from __future__ import division
  import os
  import numpy
  import sysconfig
  import subprocess
  from mlens import config
  from mlens.utils import utils
  from mlens.utils.exceptions import ParallelProcessingError
  from time import sleep
label_desc: Use image node_id 2 for calling a global function with example usage: test_safe_print() without return types