code: def test_wrong_input_type_declaration():
      def identity(ctx, val):
          return val
  
      func_name = "test_wrong_input_type_declaration"
      in_types = {"array": None}
      out_type = pa.int64()
      doc = {
          "summary": "test invalid input type",
          "description": "invalid input function",
      }
      with pytest.raises(
          TypeError, match="DataType expected, got <class 'NoneType'>"
      ):
          pc.register_scalar_function(
              identity, func_name, doc, in_types, out_type
          )
  
imports: import pytest
  import numpy
  import pyarrow
  from pyarrow import compute
label_desc: Use image node_id 29 for calling a global function with example usage: test_wrong_input_type_declaration() and returns: val