code: def test_raises_on_invalid_types(func, args, kwargs):
      """Function raises TypeError when passed invalidly-typed inputs"""
      with pytest.raises(TypeError):
          func(*args, **kwargs)
  
imports: from typing import Callable
  import pytest
  from numpy import array_api
label_desc: Use image node_id 2 for calling a global function with example usage: test_raises_on_invalid_types(func, args, kwargs) without return types