code: def dict_to_ride_record(obj, ctx):
      if obj is None:
          return None
  
      return RideRecord.from_dict(obj)
  
imports: from typing import List, Dict
label_desc: Use image node_id 1 for calling a global function with example usage: dict_to_ride_record(obj, ctx) and returns: RideRecord, None