code: def glTexImage2D(target, level, internalformat, format, type, pixels):
      border = 0
      if isinstance(pixels, (tuple, list)):
          height, width = pixels
          pixels = None
      else:
          height, width = pixels.shape[:2]
      GL.glTexImage2D(
          target,
          level,
          internalformat,
          width,
          height,
          border,
          format,
          type,
          pixels,
      )
  
imports: import ctypes
  from OpenGL import GL
  import OpenGL.GL.framebufferobjects
label_desc: Use image node_id 29 for calling a global function with example usage: glTexImage2D(target, level, internalformat, format, type, pixels) without return types