code: def test_isotime(time_val, time_fmt, as_bytes):
      tstr = time_val.strftime(time_fmt)
      if isinstance(tstr, six.text_type) and as_bytes:
          tstr = tstr.encode("ascii")
      elif isinstance(tstr, bytes) and not as_bytes:
          tstr = tstr.decode("ascii")
  
      iparser = isoparser()
  
      assert iparser.parse_isotime(tstr) == time_val
  
imports: from __future__ import unicode_literals
  from datetime import datetime, timedelta, date, time
  import itertools
  from dateutil import tz
  from dateutil.tz import UTC
  from dateutil.parser import isoparser, isoparse
  import pytest
  import six
label_desc: Use image node_id 30 for calling a global function with example usage: test_isotime(time_val, time_fmt, as_bytes) without return types