code: def test_marginal_layer(marginal_layer_spec, expected):
      input = marginal_layer_spec.as_dict()
      _clean_input(input)
  
      assert input == expected
  
file_path: lets-plot/python-package/test/plot/test_marginal_layer.py
imports: import pytest
  import lets_plot
label_desc: Use image node_id 7 for calling a global function with example usage: test_marginal_layer(marginal_layer_spec, expected) without return types