class_docstr: Test class for prompt tokenization strategies.
class_docstr_tok: ["Test","class","for","prompt","tokenization","strategies","."]
docstr: tests the interface between the user and assistant parts
docstr_tok: ["tests","the","interface","between","the","user","and","assistant","parts"]
code: def test_no_sys_prompt(self):
      """
      tests the interface between the user and assistant parts
      """
      prompter = NoSystemPrompter()
      # pylint: disable=duplicate-code
      strat = AlpacaPromptTokenizingStrategy(
          prompter,
          self.tokenizer,
          False,
          2048,
      )
      sample = {
          "instruction": "hello cruel. lorem ipsum dolor sit amet.",
          "output": "world!",
      }
      example = strat.tokenize_prompt(sample)
      world_idx = example["input_ids"].index(3186)
      assert example["labels"][world_idx] == 3186
      assert example["labels"][world_idx - 1] == -100
  
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 10 for calling the TestPromptTokenizationStrategies obj's underlying member method code with example usage: obj.test_no_sys_prompt() without return types