code: def open_(config: Config, epochs: int, data_split: str):
      """Opens conll log files for writing in a safe way."""
      base_filename = f"{config.section}_{data_split}_e{epochs}"
      conll_dir = config.conll_log_dir
      kwargs = {"mode": "w", "encoding": "utf8"}
  
      os.makedirs(conll_dir, exist_ok=True)
  
      with open(
          os.path.join(  # type: ignore
              conll_dir, f"{base_filename}.gold.conll"
          ),
          **kwargs,
      ) as gold_f:
          with open(
              os.path.join(  # type: ignore
                  conll_dir, f"{base_filename}.pred.conll"
              ),
              **kwargs,
          ) as pred_f:
              yield (gold_f, pred_f)
  
imports: from collections import defaultdict
  from contextlib import contextmanager
  import os
  from typing import List, TextIO
  from stanza.models.coref.config import Config
  from stanza.models.coref.const import Doc, Span
label_desc: Use image node_id 2 for calling a global function with example usage: open_(config, epochs, data_split) without return types