convert_value_to_code function

Create constructing code