code: def merge_resources(resource1, resource2):
      
      merged = resource1.copy()
      merged.update(resource2)
      return merged
docs: Updates a copy of resource1 with resource2 values and returns the merged dictionary.
  
      Args:
          resource1: original resource
          resource2: resource to update resource1
  
      Returns:
          dict: merged resource