code: def test_feed_forward_dense_block():
      """perception test"""
      in_dict = build_input_dict(dims=[100, 16])
      net: DenseBlock = DenseBlock(
          in_keys="in_key",
          out_keys="out_key",
          in_shapes=(16,),
          hidden_units=[32, 32],
          non_lin=nn.ReLU,
      )
      str(net)
      out_dict = net(in_dict)
  
      assert isinstance(out_dict, Dict)
      assert set(net.out_keys).issubset(set(out_dict.keys()))
      assert net.output_units == 32
      assert out_dict[net.out_keys[0]].shape[-1] == net.output_units
      assert net.out_shapes() == [out_dict[net.out_keys[0]].shape[-1:]]
  
imports: from typing import Dict
  from torch import nn
  from maze.perception.blocks.feed_forward.dense import DenseBlock
  from maze.test.perception.perception_test_utils import build_input_dict
label_desc: Use image node_id 1 for calling a global function with example usage: test_feed_forward_dense_block() without return types