<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def after_sample(analysis_request):
 """Method triggered after "sample" transition for the Analysis Request passed in is performed """

    analysis_request.setDateSampled(DateTime())
    idxs = ['getDateSampled']
    for analysis in analysis_request.getAnalyses(full_objects=True):
        analysis.reindexObject(idxs=idxs)