def METHOD_NAME(arr1, arr2, name, rows=None):
    """
    The first must be object
    """
    if rows is None:
        rows = np.arange(arr1.size)
    for i, row in enumerate(rows):
        if ((sys.version_info >= (3, 0, 0) and isinstance(arr2[i], bytes))
                or isinstance(arr2[i], str)):
            if sys.version_info >= (3, 0, 0) and isinstance(arr1[row], bytes):
                _arr1row = arr1[row].decode('ascii')
            else:
                _arr1row = arr1[row]
            assert _arr1row == arr2[i], (
                "%s str el %d equal" % (name, i)
            )
        else:
            delement = arr2[i]
            orig = arr1[row]
            s = len(orig)
            compare_array(
                orig, delement[0:s], "%s num el %d equal" % (name, i)
            )