def METHOD_NAME(custom_asset: CustomAsset) -> None:
    """
    This function checks if the custom asset's name & type are not already used in the DB.
    Raises InputError if match exists.
    """
    with GlobalDBHandler().conn.read_ctx() as cursor:
        result = cursor.execute(
            'SELECT A.identifier, B.name, A.type FROM custom_assets AS A JOIN assets B ON A.identifier = B.identifier WHERE A.type=? AND B.name=? AND A.identifier!=?;',  # noqa: E501
            (custom_asset.custom_asset_type, custom_asset.name, custom_asset.identifier),
        ).fetchone()
        if result is not None:
            raise InputError(
                f'Custom asset with name "{custom_asset.name}" and type '
                f'"{custom_asset.custom_asset_type}" already present in the database',
            )