code: def resources():
      resources = ResourceRequirements(
          requests={
              "num_cpus": 0.5,  # NumberOfCpuCoresRequired
              "memory": 512,  # MinMemoryRequiredInMb (required)
              "copies": 1,
          },
          limits={},
      )
      return resources
  
imports: from __future__ import absolute_import
  import os
  import sagemaker.predictor
  import sagemaker.utils
  import pytest
  from sagemaker import image_uris
  from sagemaker.compute_resource_requirements.resource_requirements import ResourceRequirements
  from sagemaker.enums import EndpointType
  from sagemaker.model import Model
  from sagemaker.serializers import CSVSerializer
  from sagemaker.deserializers import CSVDeserializer
  from sagemaker.predictor import Predictor
  from sagemaker.tensorflow.model import TensorFlowModel
  from tests.integ import DATA_DIR
label_desc: Use image node_id 3 for calling a global function with example usage: resources() and returns: resources