<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def div(a, b):
 """ A wrapper around tf division that does more automatic casting of the input. """

  def divide(a, b):
    """Division"""
    return a / b
  return op_with_scalar_cast(a, b, divide)