<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def zbar_function(fname, restype, *args):
 """Returns a foreign function exported by `zbar`. Args: fname (:obj:`str`):
 Name of the exported function as string. restype (:obj:):
 Return type - one of the `ctypes` primitive C data types. *args: Arguments - a sequence of `ctypes` primitive C data types. Returns: cddl.CFunctionType: A wrapper around the function. """

    prototype = CFUNCTYPE(restype, *args)
    return prototype((fname, load_libzbar()))