code: def patch_traces(self, project_id, traces):
          
          traces_pb = _traces_mapping_to_pb(traces)
          self._gapic_api.patch_traces(project_id, traces_pb)
docs: Sends new traces to Stackdriver Trace or updates existing traces.
  
          Args:
              project_id (Optional[str]): ID of the Cloud project where the trace
                  data is stored.
              traces (dict): Required. The traces to be patched in the API call.