code: def _normalize_regexp_eol(pattern):
      return pattern.replace(r"\n", re.escape(os.linesep))
  
file_path: cupy/tests/example_tests/test_finance.py
imports: import os
  import re
  import unittest
  from example_tests import example_test
  from cupy import testing
label_desc: Use image node_id 1 for calling a global function with example usage: _normalize_regexp_eol(pattern) and returns: pattern