def METHOD_NAME(
    self, sf_object: bulk.SFBulkType, action, batched_data
):
    """Handle upsert records different method"""
    sf_object_action = getattr(sf_object, action)
    try:
        if action == "upsert":
            results = sf_object_action(batched_data, "Id")
        else:
            results = sf_object_action(batched_data)
    except exceptions.SalesforceMalformedRequest as e:
        self.logger.error(
            f"Data in {action} {self.stream_name}\
                batch does not conform to target SF {self.stream_name} Object"
        )
        raise (e)
    return results