code: def _clone_var_in_block_(block, var):
      assert isinstance(var, fluid.Variable)
      if var.desc.type() == fluid.core.VarDesc.VarType.LOD_TENSOR:
          return block.create_var(
              name=var.name,
              shape=var.shape,
              dtype=var.dtype,
              type=var.type,
              lod_level=var.lod_level,
              persistable=True,
          )
      else:
          return block.create_var(
              name=var.name,
              shape=var.shape,
              dtype=var.dtype,
              type=var.type,
              persistable=True,
          )
  
imports: import paddle.fluid
  from paddle.fluid.layer_helper import LayerHelper
label_desc: Use image node_id 3 for calling a global function with example usage: _clone_var_in_block_(block, var) and returns: block, block