'Creates a stub result from courseware student module for the given values.'

def _create_csm_scores(self, csm_value):

    if csm_value.exists:
        stub_csm_record = namedtuple('stub_csm_record', 'correct,    total,    created')
        return {self.location: stub_csm_record(correct=csm_value.raw_earned, total=csm_value.raw_possible, created=csm_value.created)}
    else:
        return {}
