def METHOD_NAME(y):
    if len(y.shape) > 1:
        # one hot encoded
        logger.info("One Hot Encoded data fold information not yet implemented")
        return {}
    else:
        unique, counts = np.unique(y, return_counts=True)
        # replacing is necessary for float inputs, because mongoDB does not allow '.'-char
        unique = [str(u).replace(".", "_") for u in unique]
        counts = [int(c) for c in counts]
        return dict(zip(unique, counts))