def was_active(reference_date_value, asset):
 return (asset.start_date.value <= reference_date_value <= asset.end_date.value)

def was_active ( reference_date_value , asset ) : return ( asset . start_date . value <= reference_date_value <= asset . end_date . value )
whether or not asset was active at the time corresponding to reference_date_value .