code: def _generate_cpy_const(
      self,
      is_int,
      name,
      tp=None,
      category="const",
      vartp=None,
      delayed=True,
      size_too=False,
      check_value=None,
  ):
      prnt = self._prnt
      funcname = "_cffi_%s_%s" % (category, name)
      prnt("static int %s(PyObject *lib)" % funcname)
      prnt("{")
      prnt("  PyObject *o;")
      prnt("  int res;")
      if not is_int:
          prnt("  %s;" % (vartp or tp).get_c_name(" i", name))
      else:
          assert category == "const"
      #
      if check_value is not None:
          self._check_int_constant_value(name, check_value)
      #
      if not is_int:
          if category == "var":
              realexpr = "&" + name
          else:
              realexpr = name
          prnt("  i = (%s);" % (realexpr,))
          prnt(
              "  o = %s;"
              % (self._convert_expr_from_c(tp, "i", "variable type"),)
          )
          assert delayed
      else:
          prnt("  o = _cffi_from_c_int_const(%s);" % name)
      prnt("  if (o == NULL)")
      prnt("    return -1;")
      if size_too:
          prnt("  {")
          prnt("    PyObject *o1 = o;")
          prnt(
              '    o = Py_BuildValue("On", o1, (Py_ssize_t)sizeof(%s));'
              % (name,)
          )
          prnt("    Py_DECREF(o1);")
          prnt("    if (o == NULL)")
          prnt("      return -1;")
          prnt("  }")
      prnt('  res = PyObject_SetAttrString(lib, "%s", o);' % name)
      prnt("  Py_DECREF(o);")
      prnt("  if (res < 0)")
      prnt("    return -1;")
      prnt("  return %s;" % self._chained_list_constants[delayed])
      self._chained_list_constants[delayed] = funcname + "(lib)"
      prnt("}")
      prnt()
  
imports: import sys, imp
  from .None import model
  from .error import VerificationError
label_desc: Use image node_id 39 for calling the VCPythonEngine obj's underlying member method code with example usage: obj._generate_cpy_const(is_int, name, tp, category, vartp, delayed, size_too, check_value) without return types