class_docstr: Used to handle transforms with `event_dim > 1` until we have a Reshape transform in PyTorch
class_docstr_tok: ["Used","to","handle","transforms","with","`","event_dim",">","1","`","until","we","have","a","Reshape","transform","in","PyTorch"]
code: def _inverse(self, y):
      y = y.reshape(y.shape[:-1] + self.output_shape)
      x = self.transform._inverse(y)
      x = x.reshape(x.shape[: x.dim() - len(self.input_shape)] + (-1,))
      return x
  
imports: import operator
  from functools import partial, reduce
  from unittest import TestCase
  import pytest
  import torch
  import pyro.distributions
  import pyro.distributions.transforms
  from pyro.distributions import constraints
  from tests.common import assert_close
label_desc: Use image node_id 3 for calling the Flatten obj's underlying member method code with example usage: obj._inverse(y) and returns: x