code: def test_misc():
      """Test misc private methods for Transform."""
      # Check that passing neither a mapping, nor an inverse_mapping raises
      # a ValueError
      pytest.raises(ValueError, Transform, "world1", "world2")
  
      transform = Transform("in", "out", mapping=mapping)
  
      # Check that the repr does not raise an error:
      assert isinstance(repr(transform), str)
      # Check that copy and eq work
      assert transform == copy.copy(transform)
  
file_path: nipy/nipy/labs/datasets/transforms/tests/test_transform.py
imports: import copy
  import numpy
  import pytest
  from ..transform import CompositionError, Transform
label_desc: Use image node_id 4 for calling a global function with example usage: test_misc() without return types