code: def from_dict(cls, d: Dict):
      return cls(
          arr=[
              d["vendor_id"],
              d["passenger_count"],
              d["trip_distance"],
              d["payment_type"],
              d["total_amount"],
          ]
      )
  
imports: from typing import List, Dict
label_desc: Use image node_id 2 for calling the RideRecord obj's underlying member method code with example usage: obj.from_dict(cls, d) and returns: cls