code: def pif_to_mdf_record(pif_obj, dataset_hit, mdf_acl):
      
      res = {}
      res["mdf"] = _to_meta_data(pif_obj, dataset_hit, mdf_acl)
      res[res["mdf"]["source_name"]] = _to_user_defined(pif_obj)
      return dumps(res)
docs: Convert a PIF into partial MDF record