human
Here's a good function header given the following:
I wrote the below code

    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)

What's a good function header?
assistant
#Here's a good function header.

def is_numeric_batch(batch):