code: def test_skip_gram_sample_with_text_vocab_subsample_vocab_float():
      """Tests skip-gram sampling with text vocab and subsampling with
      floats."""
      # Vocab file frequencies
      # and: 0.4
      # life: 0.08
      # the: 0.3
      # to: 0.2
      # universe: 0.02
      #
      # corpus_size for the above vocab is 0.4+0.08+0.3+0.2+0.02 = 1.
      with tempfile.TemporaryDirectory() as tmp_dir:
          text_vocab_float_file = _make_text_vocab_float_file(tmp_dir)
          _skip_gram_sample_with_text_vocab_subsample_vocab_float(
              text_vocab_float_file
          )
  
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 19 for calling a global function with example usage: test_skip_gram_sample_with_text_vocab_subsample_vocab_float() without return types