<s> from rest_framework_transforms . transforms import BaseTransform <EOL> class TestModelTransform0002 ( BaseTransform ) : <EOL> def forwards ( self , data , request ) : <EOL> if '<STR_LIT>' in data : <EOL> data [ '<STR_LIT>' ] = data . get ( '<STR_LIT>' ) <EOL> data . pop ( '<STR_LIT>' ) <EOL> return data <EOL> def backwards ( self , data , request , instance ) : <EOL> data [ '<STR_LIT>' ] = data . get ( '<STR_LIT>' ) <EOL> data . pop ( '<STR_LIT>' ) <EOL> return data <EOL> class TestModelTransform0003 ( BaseTransform ) : <EOL> def forwards ( self , data , request ) : <EOL> data [ '<STR_LIT>' ] = [ <NUM_LIT:1> , <NUM_LIT:2> , <NUM_LIT:3> , <NUM_LIT:4> , <NUM_LIT:5> ] <EOL> return data <EOL> def backwards ( self , data , request , instance ) : <EOL> data . pop ( '<STR_LIT>' ) <EOL> return data </s>
