def get_student_item_dict(self, anonymous_user_id=None):
item_id = self._serialize_opaque_key(self.scope_ids.usage_id)<EOL>if hasattr(self, "<STR_LIT>"):<EOL><INDENT>course_id = self.get_course_id()  <EOL>if anonymous_user_id:<EOL><INDENT>student_id = anonymous_user_id<EOL><DEDENT>else:<EOL><INDENT>student_id = self.xmodule_runtime.anonymous_student_id  <EOL><DEDENT><DEDENT>else:<EOL><INDENT>course_id = "<STR_LIT>"<EOL>if self.scope_ids.user_id is None:<EOL><INDENT>student_id = '<STR_LIT>'<EOL><DEDENT>else:<EOL><INDENT>student_id = unicode(self.scope_ids.user_id)<EOL><DEDENT><DEDENT>student_item_dict = dict(<EOL>student_id=student_id,<EOL>item_id=item_id,<EOL>course_id=course_id,<EOL>item_type='<STR_LIT>'<EOL>)<EOL>return student_item_dict<EOL>
Create a student_item_dict from our surrounding context.

        See also: submissions.api for details.

        Args:
            anonymous_user_id(str): A unique anonymous_user_id for (user, course) pair.
        Returns:
            (dict): The student item associated with this XBlock instance. This
                includes the student id, item id, and course id.