code: def copy_update(pb_message, **kwds):
      
      result = pb_message.__class__()
      result.CopyFrom(pb_message)
      for k, v in kwds.items():
          setattr(result, k, v)
      return result
docs: Returns a copy of the PB object, with some fields updated.
  
      Args:
          pb_message:
          **kwds:
  
      Returns: