def METHOD_NAME(ctx, nbytes=""):
    """
    generates a URL-safe text string, containing nbytes random bytes
    sets it to ctx.data
    """
    # deprecated function
    logger.info("DeprecationWarning: randomstr is deprecated. Use random:str instead")
    random(ctx, "str", nbytes)