def _has_loc(fn):
    """Does function *fn* take ``loc`` argument?
    """
    sig = utils.pysignature(fn)
    return 'loc' in sig.parameters
Does function *fn* take ``loc`` argument?
    
numba/core/base.py