class_docstr: Test class for prompt tokenization strategies with sys prompt from the dataset
class_docstr_tok: ["Test","class","for","prompt","tokenization","strategies","with","sys","prompt","from","the","dataset"]
code: def test_system_alpaca(self):
      prompter = SystemDataPrompter(PromptStyle.CHAT.value)
      strat = InstructionWSystemPromptTokenizingStrategy(
          prompter,
          self.tokenizer,
          False,
          2048,
      )
      sample = {
          "system": "use cot",
          "instruction": "hello!",
          "output": "Hi! How can I help?",
      }
      example = strat.tokenize_prompt(sample)
      assert example["input_ids"][0:5] == [
          1,
          28962,
          1254,
          12665,
          29901,
      ]  # "<s>SYSTEM:"
      assert example["input_ids"][5:7] == [671, 20118]  # " use cot"
      assert example["input_ids"][8] == 11889
  
imports: import json
  import logging
  import unittest
  from copy import deepcopy
  from pathlib import Path
  from typing import Optional
  import pytest
  from transformers import AutoTokenizer, LlamaTokenizer
  from axolotl.prompt_strategies.alpaca_chat import NoSystemPrompter
  from axolotl.prompt_strategies.alpaca_w_system import InstructionWSystemPromptTokenizingStrategy, SystemDataPrompter
  from axolotl.prompt_strategies.llama2_chat import Llama2ChatPrompter, LLama2ChatTokenizingStrategy
  from axolotl.prompt_tokenizers import AlpacaPromptTokenizingStrategy, ShareGPTPromptTokenizingStrategy
  from axolotl.prompters import AlpacaPrompter, PromptStyle, ShareGPTPrompterV2
label_desc: Use image node_id 2 for calling the InstructionWSystemPromptTokenizingStrategyTest obj's underlying member method code with example usage: obj.test_system_alpaca() without return types