def get_activity_record(self, activity_record_type=None):
if not self.has_record_type():<EOL><INDENT>raise IllegalState()<EOL><DEDENT>else:  <EOL><INDENT>raise Unimplemented()<EOL><DEDENT>
Gets the activity record corresponding to the given Activity
        record Type.
        This method is used to retrieve an object implementing the
        requested record. The activityRecordType may be the Type
        returned in get_record_types() or any of its parents in a Type
        hierarchy where hasRecordType(activityRecordType) is true .
        arg:    activityRecordType (osid.type.Type): the type of the
                record to retrieve
        return: (osid.learning.records.ActivityRecord) - the activity
                record
        raise:  NullArgument - activityRecordType is null
        raise:  OperationFailed - unable to complete request
        raise:  Unsupported - hasRecordType(activityRecordType) is false
        compliance: mandatory - This method must be implemented.