class_docstr: Parameters
  ----------
  ttype
      Type of theano variable this list will contains, can be another list.
  depth
      Optionnal parameters, any value above 0 will create a nested list of
      this depth. (0-based)
class_docstr_tok: ["Parameters","--","--","--","--","--","ttype","Type","of","theano","variable","this","list","will","contains",",","can","be","another","list",".","depth","Optionnal","parameters",",","any","value","above","0","will","create","a","nested","list","of","this","depth",".","(","0-based",")"]
code: def c_extract(self, name, sub, check_input=True):
      if check_input:
          pre = """
              if (!PyList_Check(py_%(name)s)) {
                  PyErr_SetString(PyExc_TypeError, "expected a list");
                  %(fail)s
              }""" % dict(
              name=name, fail=sub["fail"]
          )
      else:
          pre = ""
      return (
          pre
          + """
          %(name)s = (PyListObject*) (py_%(name)s);
          """
          % dict(name=name, fail=sub["fail"])
      )
  
file_path: Theano/theano/typed_list/type.py
imports: from __future__ import absolute_import, print_function, division
  from theano import gof
label_desc: Use image node_id 11 for calling the TypedListType obj's underlying member method code with example usage: obj.c_extract(name, sub, check_input) and returns: unknown