code: def __patch_pipe_methods(tango_device_klass, pipe):
      
      __patch_pipe_read_method(tango_device_klass, pipe)
      if pipe.pipe_write == PipeWriteType.PIPE_READ_WRITE:
          __patch_pipe_write_method(tango_device_klass, pipe)
docs: Checks if the read and write methods have the correct signature.
      If a read/write method doesn't have a parameter (the traditional
      Pipe), then the method is wrapped into another method to make
      this work.
  
      :param tango_device_klass: a DeviceImpl class
      :type tango_device_klass: class
      :param pipe: the pipe data information
      :type pipe: PipeData