code: def c_str(string):
      return ctypes.c_char_p(string.encode("utf-8"))
  
file_path: LightGBM/tests/c_api_test/test_.py
imports: import ctypes
  from pathlib import Path
  from platform import system
  import numpy
  from scipy import sparse
label_desc: Use image node_id 1 for calling a global function with example usage: c_str(string) and returns: ctypes