class_docstr: Sets up an Amazon SageMaker Collection.
docstr: Adds a Model Group to a Collection.
  
  Args:
      model_package_group (str): The name of the Model Group.
      tag_rule_key (str): The tag key of the destination collection.
      tag_rule_value (str): The tag value of the destination collection.
docstr_tok: ["Adds","a","Model","Group","to","a","Collection",".","Args",":","model_package_group","(","str",")",":","The","name","of","the","Model","Group",".","tag_rule_key","(","str",")",":","The","tag","key","of","the","destination","collection",".","tag_rule_value","(","str",")",":","The","tag","value","of","the","destination","collection","."]
code: def _add_model_group(
      self, model_package_group, tag_rule_key, tag_rule_value
  ):
      """Adds a Model Group to a Collection.
  
      Args:
          model_package_group (str): The name of the Model Group.
          tag_rule_key (str): The tag key of the destination collection.
          tag_rule_value (str): The tag value of the destination collection.
      """
      model_group_details = self.sagemaker_session.sagemaker_client.describe_model_package_group(
          ModelPackageGroupName=model_package_group
      )
      self.sagemaker_session.sagemaker_client.add_tags(
          ResourceArn=model_group_details["ModelPackageGroupArn"],
          Tags=[
              {
                  "Key": tag_rule_key,
                  "Value": tag_rule_value,
              }
          ],
      )
  
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 3 for calling the Collection obj's underlying member method code with example usage: obj._add_model_group(model_package_group, tag_rule_key, tag_rule_value) without return types