code: def test_xlogx():
      x = as_tensor_variable([1, 0])
      y = xlogx(x)
      f = pytensor.function([], y)
      assert np.array_equal(f(), np.asarray([0, 0.0]))
  
      rng = np.random.default_rng(24982)
      utt.verify_grad(xlogx, [rng.random((3, 4))])
  
imports: import numpy
  import pytensor
  from pytensor.tensor import as_tensor_variable
  from pytensor.tensor.xlogx import xlogx, xlogy0
  from tests import unittest_tools
label_desc: Use image node_id 1 for calling a global function with example usage: test_xlogx() without return types