def _access_control(self, access_control, my_media_group=None):
<EOL>extension = None<EOL>if access_control is AccessControl.Private:<EOL><INDENT>if my_media_group:<EOL><INDENT>my_media_group.private = gdata.media.Private()<EOL><DEDENT><DEDENT>elif access_control is AccessControl.Unlisted:<EOL><INDENT>from gdata.media import YOUTUBE_NAMESPACE<EOL>from atom import ExtensionElement<EOL>kwargs = {<EOL>"<STR_LIT>": YOUTUBE_NAMESPACE,<EOL>"<STR_LIT>": {'<STR_LIT:action>': '<STR_LIT:list>', '<STR_LIT>': '<STR_LIT>'},<EOL>}<EOL>extension = ([ExtensionElement('<STR_LIT>', **kwargs)])<EOL><DEDENT>return extension<EOL>
Prepares the extension element for access control
Extension element is the optional parameter for the YouTubeVideoEntry
We use extension element to modify access control settings

Returns:
    tuple of extension elements