code: def test_get_vector_length():
      x = pytensor.shared(np.array((2, 3, 4, 5)))
      assert get_vector_length(x) == 4
  
file_path: pytensor/tests/tensor/test_sharedvar.py
imports: from functools import update_wrapper
  import numpy
  import pytest
  import pytensor
  import pytensor.sparse
  import pytensor.tensor
  from pytensor.misc.may_share_memory import may_share_memory
  from pytensor.tensor import get_vector_length
  from pytensor.tensor.basic import MakeVector
  from pytensor.tensor.shape import Shape_i, specify_shape
  from pytensor.tensor.sharedvar import ScalarSharedVariable, TensorSharedVariable
  from tests import unittest_tools
label_desc: Use image node_id 4 for calling a global function with example usage: test_get_vector_length() without return types