def METHOD_NAME(self):
    """Prepares request stuff."""
    inv = g.inventory = Inventory.current  # type: Inventory
    g.tag_provider = DevicehubClient(
        base_url=inv.tag_provider, token=DevicehubClient.encode_token(inv.tag_token)
    )
    # NOTE: models init methods expects that current user is
    #   available on g.user (e.g. to initialize object owner)
    g.user = current_user