This re-uses most of the code from the ta_parameter_format generator--this was factored out to "generic_sparse_struct.py".