code: def test_gen_nonce(self, run_eagerly):
      context = tf_execution_context(run_eagerly)
      with context.scope():
          nonce = easy_box.gen_nonce()
  
      assert isinstance(nonce, easy_box.Nonce), type(nonce)
      assert isinstance(nonce.raw, tf.Tensor)
      assert nonce.raw.dtype == tf.uint8
      assert nonce.raw.shape == (24,)
  
file_path: tf-encrypted/primitives/tf_encrypted/primitives/sodium/python/easy_box_test.py
imports: import unittest
  import numpy
  import tensorflow
  from absl.testing import parameterized
  from tf_encrypted.primitives.sodium.python import easy_box
  from tf_encrypted.test import tf_execution_context
label_desc: Use image node_id 2 for calling the TestEasyBox obj's underlying member method code with example usage: obj.test_gen_nonce(run_eagerly) without return types