code: def test_tensor_creator_dtype_catch(dtype):
      with pytest.raises(
          ValueError,
          match="This name looks like a dtype, which you should pass as a keyword argument only",
      ):
          tensor(dtype, shape=(None,))
  
      # This should work
      assert tensor(dtype=dtype, shape=(None,))
  
imports: import os.path
  from tempfile import mkdtemp
  import numpy
  import pytest
  import pytensor.tensor
  from pytensor.configdefaults import config
  from pytensor.tensor.shape import SpecifyShape
  from pytensor.tensor.type import TensorType, col, matrix, row, scalar, tensor, tensor3, tensor4, tensor5, tensor6, tensor7, vector
label_desc: Use image node_id 20 for calling a global function with example usage: test_tensor_creator_dtype_catch(dtype) without return types