code: def transform_to_length(nndata, length):
          
  
          if length is None:
              return nndata
  
          if length:
              for cn in range(length):
                  if cn not in nndata.cn_weights:
                      nndata.cn_weights[cn] = 0
                      nndata.cn_nninfo[cn] = []
  
          return nndata
docs: Given NNData, transforms data to the specified fingerprint length
          Args:
              nndata: (NNData)
              length: (int) desired length of NNData