code: def test_log_file_unicode(pytester: Pytester) -> None:
      log_file = str(pytester.path.joinpath("pytest.log"))
  
      pytester.makeini(
          """
          [pytest]
          log_file={}
          log_file_level = INFO
          """.format(
              log_file
          )
      )
      pytester.makepyfile(
          """\
          import logging
  
          def test_log_file():
              logging.getLogger('catchlog').info("Normal message")
              logging.getLogger('catchlog').info("├")
              logging.getLogger('catchlog').info("Another normal message")
          """
      )
  
      result = pytester.runpytest()
  
      # make sure that we get a '0' exit code for the testsuite
      assert result.ret == 0
      assert os.path.isfile(log_file)
      with open(log_file, encoding="utf-8") as rfh:
          contents = rfh.read()
          assert "Normal message" in contents
          assert "├" in contents
          assert "Another normal message" in contents
  
imports: import io
  import os
  import re
  from typing import cast
  import pytest
  from _pytest.capture import CaptureManager
  from _pytest.config import ExitCode
  from _pytest.fixtures import FixtureRequest
  from _pytest.pytester import Pytester
  from _pytest.terminal import TerminalReporter
label_desc: Use image node_id 21 for calling a global function with example usage: test_log_file_unicode(pytester) without return types