code: def _utf8(s):
      """ensure utf8 bytes"""
      if not isinstance(s, bytes):
          s = s.encode("utf8")
      return s
  
file_path: catboost/contrib/python/appnope/py3/appnope/_nope.py
imports: from contextlib import contextmanager
  import ctypes
  import ctypes.util
label_desc: Use image node_id 1 for calling a global function with example usage: _utf8(s) and returns: s