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 ctypes
  import functools
  import os
  import re
  import sys
  import types
  from typing import Callable, Sequence, Optional
  import numpy
  from .None import libinfo
label_desc: Use image node_id 2 for calling a global function with example usage: c_str(string) and returns: ctypes