def callable_validator(v: Any) -> AnyCallable:
    """
    Perform a simple check if the value is callable.

    Note: complete matching of argument type hints and return types is not performed
    """
    if callable(v):
        return v

    raise errors.CallableError(value=v)

    Perform a simple check if the value is callable.

    Note: complete matching of argument type hints and return types is not performed
    
pydantic/v1/validators.py