code: def test_recorder():
      """[Utils] _recorder: test subprocess recording function."""
      if psutil is not None and not __version__.startswith("2."):
          l = Logger()
          pid = os.getpid()
          with redirect_stdout(l):
              utils._recorder(pid, 0.2, 0.1)
  
          entries = "".join(l.log).split("\n")
          if entries[-1] == "":
              entries = entries[:-1]
  
          assert len(entries) == 2
          assert len(entries[0].split(",")) == 3
  
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 4 for calling a global function with example usage: test_recorder() without return types