code: def is_callable(instance, attribute, value):
      
  
      if not callable(value):
          raise TypeError("'{}' must be callable".format(attribute.name))
docs: Raises a :exc:`TypeError` if the value is not a callable.