code: def test_cast_literals(self, setup):
      literals = LOCAL_KG._cast_literals([[]])
      assert len(literals) == 1
      assert np.NaN in literals
  
      literals = LOCAL_KG._cast_literals([[], []])
      assert len(literals) == 2
      assert literals == [np.nan, np.nan]
  
      literals = LOCAL_KG._cast_literals([[f"{URL}#Bob"]])
      assert len(literals) == 1
      assert f"{URL}#Bob" in literals
  
      literals = LOCAL_KG._cast_literals(
          [[f"{URL}#Bob", f"{URL}#Dean"]]
      )
      assert len(literals) == 1
      print(literals)
      assert (f"{URL}#Bob", f"{URL}#Dean") in literals
  
      literals = LOCAL_KG._cast_literals([["0.42"]])
      assert len(literals) == 1
      assert 0.42 in literals
  
      literals = LOCAL_KG._cast_literals([["0.42", "0.37"]])
      assert len(literals) == 1
      assert (0.42, 0.37) in literals
  
imports: import numpy
  import pytest
  from pyrdf2vec.graphs import KG, Vertex
label_desc: Use image node_id 3 for calling the TestKG obj's underlying member method code with example usage: obj.test_cast_literals(setup) without return types