def METHOD_NAME(self, mock_component_operation: ComponentOperations) -> None:
    component = CommandComponent(
        name="random_name",
        version="1",
        environment="azureml:AzureML-Minimal:1",
        command="echo hello",
        intellectual_property=IntellectualProperty(publisher="contoso", protection_level="all"),
    )
    with patch.object(ComponentOperations, "_resolve_arm_id_or_upload_dependencies") as mock_thing, patch(
        "azure.ai.ml.operations._component_operations.Component._from_rest_object",
        return_value=CommandComponent(),
    ):
        mock_component_operation.create_or_update(component)
        # for IPP components, we need to make sure _resolve_arm_id_or_upload_dependencies is not called
        mock_thing.assert_not_called()