code: def test_tensor_creator_helper():
      res = tensor(shape=(5, None))
      assert res.type == TensorType(config.floatX, shape=(5, None))
      assert res.name is None
  
      res = tensor(dtype="int64", shape=(5, None), name="custom")
      assert res.type == TensorType(dtype="int64", shape=(5, None))
      assert res.name == "custom"
  
      # Test with positional name argument
      res = tensor("custom", dtype="int64", shape=(5, None))
      assert res.type == TensorType(dtype="int64", shape=(5, None))
      assert res.name == "custom"
  
      with pytest.warns(
          DeprecationWarning,
          match="The `broadcastable` keyword is deprecated",
      ):
          res = tensor(
              dtype="int64", broadcastable=(True, False), name="custom"
          )
          assert res.type == TensorType("int64", shape=(1, None))
          assert res.name == "custom"
  
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 19 for calling a global function with example usage: test_tensor_creator_helper() without return types