  
    return seg_path
  
  
  def regen_and_save(route, sidx, upload=False, use_route_meta=True, outdir=FAKEDATA, disable_tqdm=False):
    if use_route_meta:
      r = Route(route)
      lr = LogReader(r.log_paths()[sidx])
      fr = FrameReader(r.camera_paths()[sidx])
    else:
 
</s> remove   rpath = regen_segment(lr, {'roadCameraState': fr}, outdir=outdir, disable_tqdm=disable_tqdm)
 </s> add     device_type = next(iter(lr)).initData.deviceType
    if device_type == 'tici':
      wfr = FrameReader(f"cd:/{route.replace('|', '/')}/{sidx}/ecamera.hevc")
    else:
      wfr = None
  
  frs = {'roadCameraState': fr}
  if wfr is not None:
    frs['wideRoadCameraState'] = wfr
  rpath = regen_segment(lr, frs, outdir=outdir, disable_tqdm=disable_tqdm) </s> remove     ("roadCameraState", DT_MDL, tici_f_frame_size, VisionStreamType.VISION_STREAM_ROAD, True),
    ("driverCameraState", DT_MDL, tici_d_frame_size, VisionStreamType.VISION_STREAM_DRIVER, False),
 </s> add     ("roadCameraState", DT_MDL, tici_f_frame_size, VisionStreamType.VISION_STREAM_ROAD, False),
    ("wideRoadCameraState", DT_MDL, tici_e_frame_size, VisionStreamType.VISION_STREAM_WIDE_ROAD, False),
    ("driverCameraState", DT_DMON, tici_d_frame_size, VisionStreamType.VISION_STREAM_DRIVER, False), </s> remove   regen_and_save(args.route, args.seg, args.upload)
 </s> add   regen_and_save(args.route, args.seg, args.upload, outdir=args.outdir)
def regen_and_save(route, sidx, upload=False, use_route_meta=False, outdir=FAKEDATA, disable_tqdm=False):
  
    return seg_path
  
  
def regen_and_save(route, sidx, upload=False, use_route_meta=False, outdir=FAKEDATA, disable_tqdm=False):
    if use_route_meta:
      r = Route(route)
      lr = LogReader(r.log_paths()[sidx])
      fr = FrameReader(r.camera_paths()[sidx])
    else:
keep keep keep keep replace keep keep keep keep keep
 regen: ecamera support (#27999)

* Add wideRoadCameraState support in regen

* Fix for ecam FrameReader when use_route_meta

* Pylint fixes 
selfdrive/test/process_replay/regen.py