<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def create_bundle(self, bundleId, data=None):

 """Creates a bundle using Globalization Pipeline service"""

        headers={'content-type':'application/json'}
        url = self.__get_base_bundle_url() + "/" + bundleId
        if data is None:
            data = {}
            data['sourceLanguage'] = 'en'
            data['targetLanguages'] = []
            data['notes']=[]
            data['metadata']={}
            data['partner']=''
            data['segmentSeparatorPattern']=''
            data['noTranslationPattern']=''
        json_data = json.dumps(data)
        response = self.__perform_rest_call(requestURL=url, restType='PUT', body=json_data, headers=headers)
        return response