code: def converter_localitypreservingprojections(data_fname, k):
      from shogun import CSVFile
      from shogun import LocalityPreservingProjections
  
      features = sg.create_features(CSVFile(data_fname))
      converter = LocalityPreservingProjections()
      converter.set_target_dim(1)
      converter.set_k(k)
      converter.set_tau(2.0)
      converter.transform(features)
  
      return features
  
label_desc: Use image node_id 1 for calling a global function with example usage: converter_localitypreservingprojections(data_fname, k) and returns: features