code: def testTimedeltaConversion(self):
      message = duration_pb2.Duration()
      message.FromNanoseconds(1999999999)
      td = message.ToTimedelta()
      self.assertEqual(1, td.seconds)
      self.assertEqual(999999, td.microseconds)
  
      message.FromNanoseconds(-1999999999)
      td = message.ToTimedelta()
      self.assertEqual(-1, td.days)
      self.assertEqual(86398, td.seconds)
      self.assertEqual(1, td.microseconds)
  
      message.FromMicroseconds(-1)
      td = message.ToTimedelta()
      self.assertEqual(-1, td.days)
      self.assertEqual(86399, td.seconds)
      self.assertEqual(999999, td.microseconds)
      converted_message = duration_pb2.Duration()
      converted_message.FromTimedelta(td)
      self.assertEqual(message, converted_message)
  
imports: from datetime import datetime
  from google.protobuf import any_pb2
  from google.protobuf import duration_pb2
  from google.protobuf import field_mask_pb2
  from google.protobuf import struct_pb2
  from google.protobuf import timestamp_pb2
  from google.protobuf import unittest_pb2
  from google.protobuf.internal import any_test_pb2
  from google.protobuf.internal import test_util
  from google.protobuf.internal import well_known_types
  from google.protobuf import descriptor
  from google.protobuf import text_format
label_desc: Use image node_id 6 for calling the TimeUtilTest obj's underlying member method code with example usage: obj.testTimedeltaConversion() without return types