class_docstr: A transform is a representation of a transformation from one 3D space to
  another. It is composed of a coordinate mapping, or its inverse, as well
  as the name of the input and output spaces.
  
  The Transform class is the base class for transformations and defines
  the transform object API.
docstr: Check that the given transform can be composed with this
  one.
docstr_tok: ["Check","that","the","given","transform","can","be","composed","with","this","one","."]
code: def _check_composition(self, transform):
      """Check that the given transform can be composed with this
      one.
      """
      if not transform.input_space == self.output_space:
          raise CompositionError(
              "The input space of the "
              "second transform ({}) does not match the input space "
              "of first transform ({})".format(
                  transform.input_space, self.output_space
              )
          )
  
file_path: nipy/nipy/labs/datasets/transforms/transform.py
label_desc: Use image node_id 4 for calling the Transform obj's underlying member method code with example usage: obj._check_composition(transform) without return types