code: def test_feature_metadata_update(sagemaker_session_mock):
      feature_group = FeatureGroup(
          name="MyFeatureGroup",
          sagemaker_session=sagemaker_session_mock,
      )
  
      parameter_additions = [
          FeatureParameter(key="key1", value="value1")
      ]
      parameter_removals = ["key2"]
  
      feature_group.update_feature_metadata(
          feature_name="Feature1",
          description="TestDescription",
          parameter_additions=parameter_additions,
          parameter_removals=parameter_removals,
      )
      sagemaker_session_mock.update_feature_metadata.assert_called_with(
          feature_group_name="MyFeatureGroup",
          feature_name="Feature1",
          description="TestDescription",
          parameter_additions=[
              pa.to_dict() for pa in parameter_additions
          ],
          parameter_removals=parameter_removals,
      )
      feature_group.update_feature_metadata(
          feature_name="Feature1", description="TestDescription"
      )
      sagemaker_session_mock.update_feature_metadata.assert_called_with(
          feature_group_name="MyFeatureGroup",
          feature_name="Feature1",
          description="TestDescription",
          parameter_additions=[],
          parameter_removals=[],
      )
  
imports: from __future__ import absolute_import
  import pandas
  import pytest
  from mock import Mock, patch, MagicMock
  from botocore.exceptions import ProfileNotFound
  from sagemaker.feature_store.feature_definition import FractionalFeatureDefinition, IntegralFeatureDefinition, StringFeatureDefinition, FeatureTypeEnum, VectorCollectionType, SetCollectionType, ListCollectionType
  from sagemaker.feature_store.feature_group import FeatureGroup, IngestionManagerPandas, AthenaQuery, IngestionError
  from sagemaker.feature_store.inputs import FeatureParameter, DeletionModeEnum, TtlDuration, OnlineStoreConfigUpdate, OnlineStoreStorageTypeEnum
  from tests.unit import SAGEMAKER_CONFIG_FEATURE_GROUP
label_desc: Use image node_id 18 for calling a global function with example usage: test_feature_metadata_update(sagemaker_session_mock) without return types