def maybe_coeff_key(grid, expr):
    '\n    True if `expr` could be the coefficient of an FD derivative, False otherwise.\n    '
    if expr.is_Number:
        return True
    indexeds = [i for i in expr.free_symbols if i.is_Indexed]
    return any(((not (set(grid.dimensions) <= set(i.function.dimensions))) for i in indexeds))
True if `expr` could be the coefficient of an FD derivative, False otherwise.
def maybe_coeff_key(grid, expr):
    '\n    \n    '
    if expr.is_Number:
        return True
    indexeds = [i for i in expr.free_symbols if i.is_Indexed]
    return any(((not (set(grid.dimensions) <= set(i.function.dimensions))) for i in indexeds))