code: def _validate_callable(func):
      if not hasattr(func, "__call__"):
          raise ValueError(
              "%s passed to is not a function for deprecation."
              % (func,)
          )
  
file_path: tfx/tfx/utils/deprecation_utils.py
imports: import functools
  import inspect
  import warnings
label_desc: Use image node_id 2 for calling a global function with example usage: _validate_callable(func) without return types