code: def test_cosine_distance_with_negative_samples_with_reduced_sequence():
      a = C.sequence.input_variable((3,), sequence_axis=C.Axis("a"))
      b = C.sequence.input_variable((3,), sequence_axis=C.Axis("b"))
      cd = C.cosine_distance_with_negative_samples(
          C.sequence.first(a), C.sequence.first(b), 1, 2
      )
      data = np.random.random((4, 3)).astype(np.float32)
      cd.eval({a: data, b: data})
  
file_path: CNTK/bindings/python/cntk/losses/tests/cosine_distance_test.py
imports: import numpy
  import pytest
  import cntk
label_desc: Use image node_id 3 for calling a global function with example usage: test_cosine_distance_with_negative_samples_with_reduced_sequence() without return types