code: def c_str(string):
      """Create ctypes char * from a python string
      Parameters
      ----------
      string : string type
          python string
  
      Returns
      -------
      str : c_char_p
          A char pointer that can be passed to C API
      """
      return ctypes.c_char_p(string.encode("utf-8"))
  
imports: import sys
  import ctypes
  import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: c_str(string) and returns: ctypes