code: def test_validate_dicts():
      assert validate("{x: int, y: int}", {"x": 1, "y": 2})
      assert not validate("{x: int, y: int}", {"x": 1, "y": 2.0})
      assert not validate("{x: int, y: int}", {"x": 1, "z": 2})
  
      assert validate("var * {x: int, y: int}", [{"x": 1, "y": 2}])
  
      assert validate(
          "var * {x: int, y: int}", [{"x": 1, "y": 2}, {"x": 3, "y": 4}]
      )
  
file_path: datashader/datashader/datashape/tests/test_user.py
imports: import pytest
  from datashader.datashape.user import issubschema, validate
  from datashader.datashape import dshape
  from datetime import date, time, datetime
  import numpy
label_desc: Use image node_id 4 for calling a global function with example usage: test_validate_dicts() without return types