def mul(x, y):
    """Computes multiplication element-wise.
    Args:
        x, y: array_like data
    Returns:
        ndarray 
    """
    if x.dtype is not y.dtype:
        raise TypeError('x and y should be same type.')
    
    return x * y