code: def embedding(
      size,
      is_sparse=False,
      is_distributed=False,
      padding_idx=None,
      param_attr=None,
      dtype="float32",
      name=None,
  ):
      """
      Return a function that creates a paddle.fluid.layers.embedding.
      """
      param_attr = update_attr_name(
          name, "embedding", param_attr, False
      )
  
      class Embedding_(LayerFunc):
          def __init__(self):
              super(Embedding_, self).__init__(
                  AttrHolder(param_attr=param_attr)
              )
  
          def __call__(self, input):
              return layers.embedding(
                  input=input,
                  size=size,
                  is_sparse=is_sparse,
                  is_distributed=is_distributed,
                  padding_idx=padding_idx,
                  param_attr=self.attr_holder.param_attr,
                  dtype=dtype,
              )
  
      return Embedding_()
  
imports: import inspect
  import paddle.fluid.layers
  import paddle.fluid.unique_name
  import paddle.fluid
  import six
  from copy import deepcopy
  from paddle.fluid.executor import _fetch_var
  from paddle.fluid.framework import Variable
  from paddle.fluid.layers import *
  from paddle.fluid.param_attr import ParamAttr
  from parl.core.fluid.layers.attr_holder import AttrHolder
  from parl.utils import get_fluid_version
label_desc: Use image node_id 4 for calling a global function with example usage: embedding(size, is_sparse, is_distributed, padding_idx, param_attr, dtype, name) and returns: Embedding_, layers