def ToJsonString(self):
    if self.seconds < 0 or self.nanos < 0:
      result = '-'
      seconds = - self.seconds + int((0 - self.nanos) // 1e9)
      nanos = (0 - self.nanos) % 1e9
    else:
      result = ''
      seconds = self.seconds + int(self.nanos // 1e9)
      nanos = self.nanos % 1e9
    result += '%d' % seconds
    if (nanos % 1e9) == 0:


      return result + 's'
    if (nanos % 1e6) == 0:

      return result + '.%03ds' % (nanos / 1e6)
    if (nanos % 1e3) == 0:

      return result + '.%06ds' % (nanos / 1e3)

    return result + '.%09ds' % nanos
Test whether this filter can be called with the following argument list.
dataset/ETHPy150Open GoogleCloudPlatform/python-compat-runtime/appengine-compat/exported_appengine_sdk/google/net/proto2/python/internal/well_known_types.py/Duration.ToJsonString--crossover with--dataset/ETHPy150Open jonathanslenders/python-prompt-toolkit/prompt_toolkit/filters/base.py/Filter.test_args