code: def _get_vector_length_TensorSharedVariable(var_inst, var):
      return len(var.get_value(borrow=True))
  
file_path: pytensor/pytensor/tensor/sharedvar.py
imports: import warnings
  import numpy
  from pytensor.compile import SharedVariable, shared_constructor
  from pytensor.misc.safe_asarray import _asarray
  from pytensor.tensor import _get_vector_length
  from pytensor.tensor.type import TensorType
  from pytensor.tensor.variable import _tensor_py_operators
label_desc: Use image node_id 2 for calling a global function with example usage: _get_vector_length_TensorSharedVariable(var_inst, var) and returns: len