class_docstr: Sets up an Amazon SageMaker Collection.
docstr: Removes a Model Group from a Collection.
  
  Args:
      model_package_group (str): The name of the Model Group
      tag_rule_key (str): The tag key of the Collection from which to remove the Model Group.
docstr_tok: ["Removes","a","Model","Group","from","a","Collection",".","Args",":","model_package_group","(","str",")",":","The","name","of","the","Model","Group","tag_rule_key","(","str",")",":","The","tag","key","of","the","Collection","from","which","to","remove","the","Model","Group","."]
code: def _remove_model_group(self, model_package_group, tag_rule_key):
      """Removes a Model Group from a Collection.
  
      Args:
          model_package_group (str): The name of the Model Group
          tag_rule_key (str): The tag key of the Collection from which to remove the Model Group.
      """
      model_group_details = self.sagemaker_session.sagemaker_client.describe_model_package_group(
          ModelPackageGroupName=model_package_group
      )
      self.sagemaker_session.sagemaker_client.delete_tags(
          ResourceArn=model_group_details["ModelPackageGroupArn"],
          TagKeys=[tag_rule_key],
      )
  
imports: from __future__ import absolute_import
  import json
  import time
  from typing import List
  from botocore.exceptions import ClientError
  from sagemaker.session import Session
label_desc: Use image node_id 4 for calling the Collection obj's underlying member method code with example usage: obj._remove_model_group(model_package_group, tag_rule_key) without return types