def generate_assetid(filename: str):
    """ A function that returns an asset ID for a given filename. """
    try:
        return filename.split("/")[-1].split(".")[0]

    except Exception as e:
        raise NameError(e)