parameters: (dtype)
return_statement: return dtype
docstring: Validate and return floating point type based on `dtype`.
  
    `dtype` must be a floating point type.
  
    Args:
      dtype: The data type to validate.
  
    Returns:
      Validated type.
  
    Raises:
      ValueError: if `dtype` is not a floating point type.
docstring_summary: Validate and return floating point type based on `dtype`.
docstring_tokens: Validate and return floating point type based on dtype .
function: def _assert_float_dtype(dtype):
    """Validate and return floating point type based on `dtype`.
  
    `dtype` must be a floating point type.
  
    Args:
      dtype: The data type to validate.
  
    Returns:
      Validated type.
  
    Raises:
      ValueError: if `dtype` is not a floating point type.
    """
    if not dtype.is_floating:
      raise ValueError("Expected floating point type, got %s." % dtype)
    return dtype
function_tokens: def _assert_float_dtype ( dtype ) : if not dtype . is_floating : raise ValueError ( "Expected floating point type, got %s." % dtype ) return dtype