code: def test_cntk_embed():
      try:
          import tensorflow
  
          has_tensorflow = True
      except:
          has_tensorflow = False
  
      if has_tensorflow:
          tf_baseline_embed()
      else:
          cntk_baseline_embed()
  
      import cntk as C
      import cntk.contrib.crosstalk.crosstalk_cntk as crct
  
      ci = crct.instance
      ci.set_workdir(workdir)
  
      embed = C.parameter(
          (
              input_dim,
              emb_dim,
          )
      )
      ci.watch(
          embed,
          "embed",
          var_type=cstk.EmbedAttr,
          attr=cstk.EmbedAttr(dict=dict2, input_dim=input_dim),
      )
  
      ci.assign("embed", load=True)
      assert np.isclose(emb2, embed.value).all()
  
      # test assign with value
      ci.assign(
          "embed", value={"a": emb1[0], "b": emb1[1], "c": emb1[2]}
      )
  
      ci.reset()
  
imports: import pytest
  import numpy
  from cntk.contrib import crosstalk
  import tempfile
label_desc: Use image node_id 3 for calling a global function with example usage: test_cntk_embed() without return types