human
Complete the below
def is_numeric_batch(batch):

    ''''Returns True if batch is a numeric variable.
    Note that a batch may be both a symbolic and numeric variable
    (e.g. () for empty CompositeSpaces, None for NullSpaces).'
    '''

Write me a the Python program you requested?
assistant
#Here is the Python program you requested.
    def is_numeric(batch):
        return (isinstance(batch, np.ndarray) or scipy.sparse.issparse(batch) or (str(type(batch)) == "<type    'CudaNdarray'>"))
    return _is_batch_all(batch, is_numeric)