import pkgutil


def get_resource(name: str) -> bytes:
    try:
        b = pkgutil.get_data(__package__, name)
    except OSError:
        raise Exception("no such embedded resource: %s" % name) from None
    if b is None:
        raise Exception("package cannot be located or loaded: %s" % __package__)
    assert type(b) == bytes  # todo: remove this
    return b

10f3ee97e68a195962cd89ae893357712b837e90
<mask token>

<mask token>


def get_resource(name: str) ->bytes:
    try:
        b = pkgutil.get_data(__package__, name)
    except OSError:
        raise Exception('no such embedded resource: %s' % name) from None
    if b is None:
        raise Exception('package cannot be located or loaded: %s' % __package__
            )
    assert type(b) == bytes
    return b

import pkgutil


def get_resource(name: str) ->bytes:
    try:
        b = pkgutil.get_data(__package__, name)
    except OSError:
        raise Exception('no such embedded resource: %s' % name) from None
    if b is None:
        raise Exception('package cannot be located or loaded: %s' % __package__
            )
    assert type(b) == bytes
    return b

import pkgutil


def get_resource(name: str) -> bytes:
    try:
        b = pkgutil.get_data(__package__, name)
    except OSError:
        raise Exception("no such embedded resource: %s" % name) from None
    if b is None:
        raise Exception("package cannot be located or loaded: %s" % __package__)
    assert type(b) == bytes  # todo: remove this
    return b
