code: def wrap(self, value, timestamp=None):
          
          if isinstance(value, Value):
              return value
          elif isinstance(value, ntwrappercommon):
              return value.raw
          elif isinstance(value, dict):
              return self.Value(self.type, value)
          else:
              S, NS = divmod(float(timestamp or time.time()), 1.0)
              return self.Value(self.type, {
                  'value': value,
                  'timeStamp': {
                      'secondsPastEpoch': S,
                      'nanoseconds': NS * 1e9,
                  },
              })
docs: Pack python value into Value
  
          Accepts dict to explicitly initialize fields be name.
          Any other type is assigned to the 'value' field.