code: def test_embed_forward_backward(
      seed, shape_x, shape_w, ctx, func_name
  ):
      from nbla_test_utils import cap_ignore_region, function_tester
  
      rng = np.random.RandomState(seed)
      n_class = shape_w[0]
      x = rng.randint(0, n_class - 1, shape_x).astype(np.int32)
      w = rng.randn(*shape_w).astype(np.float32)
      inputs = [x, w]
      function_tester(
          rng,
          F.embed,
          lambda x, w: w[x],
          inputs,
          ctx=ctx,
          func_name=func_name,
          atol_b=1e-2,
          backward=[False, True],
      )
  
imports: import pytest
  import sys
  import numpy
  import nnabla.functions
  from nbla_test_utils import list_context
label_desc: Use image node_id 1 for calling a global function with example usage: test_embed_forward_backward(seed, shape_x, shape_w, ctx, func_name) without return types