code: def funsordistribution_to_funsor(
      pyro_dist, output=None, dim_to_name=None
  ):
      raise NotImplementedError(
          "TODO implement conversion for FunsorDistribution"
      )
  
imports: from collections import OrderedDict
  import torch
  from pyro.distributions import TorchDistribution
  from torch.distributions import constraints
  from funsor.cnf import Contraction
  from funsor.delta import Delta
  from funsor.domains import Bint
  from funsor.interpreter import reinterpret
  from funsor.pyro.convert import DIM_TO_NAME, funsor_to_tensor, tensor_to_funsor
  from funsor.terms import Funsor, to_funsor
label_desc: Use image node_id 1 for calling a global function with example usage: funsordistribution_to_funsor(pyro_dist, output, dim_to_name) without return types