code: def test_in_update_wrong_dtype(self):
      # Ensure that an error is raised if an In-wrapped variables has
      # an update of a different type
      a = dscalar("a")
      b = dvector("b")
      with pytest.raises(TypeError):
          In(a, update=b)
  
imports: import os
  import pickle
  import re
  import shutil
  import tempfile
  import numpy
  import pytest
  from pytensor.compile import shared
  from pytensor.compile.function import function, function_dump
  from pytensor.compile.io import In
  from pytensor.configdefaults import config
  from pytensor.tensor.type import bscalar, bvector, dscalar, dvector, fscalar, fvector, vector, wvector
label_desc: Use image node_id 6 for calling the TestFunctionIn obj's underlying member method code with example usage: obj.test_in_update_wrong_dtype() without return types