def wrapped_ndptr(*args, **kwargs):
    base = ndpointer(*args, **kwargs)

def from_param(cls, obj):
    if obj is None:
        return obj
How can I pass null to an external library, using ctypes, with an argument declared with ctypeslib.ndpointer?