code: def change_censored_size(cls, dist, new_size, expand=False):
      uncensored_dist, lower, upper = dist.owner.inputs
      if expand:
          new_size = tuple(new_size) + tuple(uncensored_dist.shape)
      return Censored.rv_op(
          uncensored_dist, lower, upper, size=new_size
      )
  
file_path: pymc/pymc/distributions/censored.py
imports: import numpy
  import pytensor.tensor
  from pytensor.tensor import TensorVariable
  from pytensor.tensor.random.op import RandomVariable
  from pymc.distributions.distribution import Distribution, SymbolicRandomVariable, _moment
  from pymc.distributions.shape_utils import _change_dist_size, change_dist_size
  from pymc.util import check_dist_not_registered
label_desc: Use image node_id 1 for calling a global function with example usage: change_censored_size(cls, dist, new_size, expand) and returns: Censored