Creates new ``AssetContent`` for a given asset.

        arg:    asset_content_form (osid.repository.AssetContentForm):
                the form for this ``AssetContent``
        return: (osid.repository.AssetContent) - the new
                ``AssetContent``
        raise:  IllegalState - ``asset_content_form`` already used in a
                create transaction
        raise:  InvalidArgument - one or more of the form elements is
                invalid
        raise:  NullArgument - ``asset_content_form`` is ``null``
        raise:  OperationFailed - unable to complete request
        raise:  PermissionDenied - authorization failure
        raise:  Unsupported - ``asset_content_form`` did not originate
                from ``get_asset_content_form_for_create()``
        *compliance: mandatory -- This method must be implemented.*

def create_asset_content(self, asset_content_form):
        """Creates new ``AssetContent`` for a given asset.

        arg:    asset_content_form (osid.repository.AssetContentForm):
                the form for this ``AssetContent``
        return: (osid.repository.AssetContent) - the new
                ``AssetContent``
        raise:  IllegalState - ``asset_content_form`` already used in a
                create transaction
        raise:  InvalidArgument - one or more of the form elements is
                invalid
        raise:  NullArgument - ``asset_content_form`` is ``null``
        raise:  OperationFailed - unable to complete request
        raise:  PermissionDenied - authorization failure
        raise:  Unsupported - ``asset_content_form`` did not originate
                from ``get_asset_content_form_for_create()``
        *compliance: mandatory -- This method must be implemented.*

        """
        # Implemented from template for
        # osid.repository.AssetAdminSession.create_asset_content_template
        from dlkit.abstract_osid.repository.objects import AssetContentForm as ABCAssetContentForm
        collection = JSONClientValidated('repository',
                                         collection='Asset',
                                         runtime=self._runtime)
        if not isinstance(asset_content_form, ABCAssetContentForm):
            raise errors.InvalidArgument('argument type is not an AssetContentForm')
        if asset_content_form.is_for_update():
            raise errors.InvalidArgument('the AssetContentForm is for update only, not create')
        try:
            if self._forms[asset_content_form.get_id().get_identifier()] == CREATED:
                raise errors.IllegalState('asset_content_form already used in a create transaction')
        except KeyError:
            raise errors.Unsupported('asset_content_form did not originate from this session')
        if not asset_content_form.is_valid():
            raise errors.InvalidArgument('one or more of the form elements is invalid')
        asset_content_form._my_map['_id'] = ObjectId()
        asset_id = Id(asset_content_form._my_map['assetId']).get_identifier()
        asset = collection.find_one(
            {'$and': [{'_id': ObjectId(asset_id)},
                      {'assigned' + self._catalog_name + 'Ids': {'$in': [str(self._catalog_id)]}}]})
        asset['assetContents'].append(asset_content_form._my_map)
        result = collection.save(asset)

        self._forms[asset_content_form.get_id().get_identifier()] = CREATED
        from .objects import AssetContent
        return AssetContent(
            osid_object_map=asset_content_form._my_map,
            runtime=self._runtime,
            proxy=self._proxy)