code: def _get_vector_length_Constant(
      op: Union[Op, Variable], var: Constant
  ) -> int:
      return len(var.data)
  
imports: from collections.abc import Sequence
  from functools import singledispatch
  from typing import TYPE_CHECKING, Any, Callable, NoReturn, Optional, Union
  from pytensor.graph.basic import Constant, Variable
  from pytensor.graph.op import Op
  import pytensor.tensor.exceptions
  from pytensor.gradient import grad, hessian, jacobian
  from pytensor.tensor import sharedvar
  from pytensor.tensor import blas, blas_c, blas_scipy, xlogx
  import pytensor.tensor.rewriting
  from pytensor.tensor import linalg
  from pytensor.tensor import special
  from pytensor.tensor import nlinalg
  from pytensor.tensor import slinalg
  from pytensor.tensor.basic import *
  from pytensor.tensor.blas import batched_dot, batched_tensordot
  from pytensor.tensor.extra_ops import *
  from pytensor.tensor.shape import reshape, shape, shape_padaxis, shape_padleft, shape_padright, specify_broadcastable, specify_shape
  from pytensor.tensor.io import *
  from pytensor.tensor.math import *
  from pytensor.tensor.sort import argsort, argtopk, sort, topk, topk_and_argtopk
  from pytensor.tensor.subtensor import *
  from pytensor.tensor.type import *
  from pytensor.tensor.type_other import *
  from pytensor.tensor.variable import TensorConstant, TensorVariable
  from pytensor.tensor.functional import vectorize
  from numpy import e, euler_gamma, inf, infty, nan, newaxis, pi
label_desc: Use image node_id 5 for calling a global function with example usage: _get_vector_length_Constant(op, var) and returns: len