human
Complete this python program:
def _get_client(func):
assistant
#Here is the Python program you requested.

    """Injects a client instance to the each function
    This decorator creates an instance of the Registry
    client and passes it as an argument to each function
    in this API.
    """
    @functools.wraps(func)
    def wrapper(context, *args, **kwargs):
        client = api.get_registry_client(context)
        return func(client, *args, **kwargs)
    return wrapper