code: def test_remove_model_groups_success(sagemaker_session):
      collection = Collection(sagemaker_session)
      add_response = collection.remove_model_groups(
          collection_name=[COLLECTION_NAME],
          model_groups=["test-model-group"],
      )
      assert len(add_response["removed_groups"]) == 1
      assert len(add_response["failure"]) == 0
  
file_path: sagemaker-python-sdk/tests/unit/test_collection.py
imports: from __future__ import absolute_import
  import pytest
  import json
  from mock import Mock
  from sagemaker.collection import Collection
label_desc: Use image node_id 6 for calling a global function with example usage: test_remove_model_groups_success(sagemaker_session) without return types