How to change translation from global to Local with python code?

I can create a transform and set translation on local manually. But are there any code could change translation from global to Local with python code?
I checked github code found: setCoordinateReference(LOCAL), while a error happen as follows:
‘vTransformr.setCoordinateReference(LOCAL)
Traceback (most recent call last):
File “”, line 1, in
AttributeError: ‘vtkCommonTransformsPython.vtkTransform’ object has no attribute 'setCoordinateReference’

2 posts were merged into an existing topic: How to switch transform from global to local