code: def _skip_gram_sample_with_text_vocab_errors(vocab_freq_file):
      dummy_input = tf.constant([""])
      invalid_indices = (
          # vocab_token_index can't be negative.
          (-1, 0),
          # vocab_freq_index can't be negative.
          (0, -1),
          # vocab_token_index can't be equal to vocab_freq_index.
          (0, 0),
          (1, 1),
          # vocab_freq_file only has two columns.
          (0, 2),
          (2, 0),
      )
  
      for vocab_token_index, vocab_freq_index in invalid_indices:
          with pytest.raises(ValueError):
              text.skip_gram_sample_with_text_vocab(
                  input_tensor=dummy_input,
                  vocab_freq_file=vocab_freq_file,
                  vocab_token_index=vocab_token_index,
                  vocab_freq_index=vocab_freq_index,
              )
  
imports: import csv
  import os
  import tempfile
  import numpy
  import pytest
  import tensorflow
  from tensorflow_addons import text
  from tensorflow_addons.text import skip_gram_ops
label_desc: Use image node_id 22 for calling a global function with example usage: _skip_gram_sample_with_text_vocab_errors(vocab_freq_file) without return types