code: def share_extension_by_id(self, extension_id, account_name):
          
          route_values = {}
          if extension_id is not None:
              route_values['extensionId'] = self._serialize.url('extension_id', extension_id, 'str')
          if account_name is not None:
              route_values['accountName'] = self._serialize.url('account_name', account_name, 'str')
          self._send(http_method='POST',
                     location_id='1f19631b-a0b4-4a03-89c2-d79785d24360',
                     version='5.0-preview.1',
                     route_values=route_values)
docs: ShareExtensionById.
          [Preview API]
          :param str extension_id:
          :param str account_name: