code: def test_update_predictor():
      sagemaker_session = empty_sagemaker_session()
      component_name = "test_component_name"
      predictor = Predictor(
          ENDPOINT,
          sagemaker_session=sagemaker_session,
          component_name=component_name,
      )
  
      resources = ResourceRequirements(
          requests={
              "num_cpus": 1,  # NumberOfCpuCoresRequired
              "memory": 1024,  # MinMemoryRequiredInMb (required)
              "copies": 1,
          },
          limits={"memory": 4096},
      )
  
      predictor.update_predictor(resources=resources)
  
      request = {
          "inference_component_name": component_name,
          "specification": {
              "ComputeResourceRequirements": resources.get_compute_resource_requirements()
          },
          "runtime_config": {"CopyCount": resources.copy_count},
      }
  
      sagemaker_session.update_inference_component.assert_called_with(
          **request
      )
  
imports: from __future__ import absolute_import
  import io
  import json
  import pytest
  from mock import Mock, call, patch
  from sagemaker.deserializers import CSVDeserializer, PandasDeserializer
  from sagemaker.enums import EndpointType
  from sagemaker.model_monitor.model_monitoring import DEFAULT_REPOSITORY_NAME
  from sagemaker.predictor import Predictor
  from sagemaker.serializers import JSONSerializer, CSVSerializer
  from sagemaker.compute_resource_requirements.resource_requirements import ResourceRequirements
label_desc: Use image node_id 27 for calling a global function with example usage: test_update_predictor() without return types