<human>:  What is a good Python function to parse iso format time with timezone offset.
<bot>: Here is a Python function to parse iso format time with timezone offset

import datetime

def parse_iso_time(time_str):
  """Parse iso format time with timezone offset.

  Args:
    time_str (str): Time string in iso format.

  Returns:
    datetime.datetime: Datetime object.
  """
  return datetime.datetime.strptime(time_str, "%Y-%m-%dT%H:%M:%S.%fZ")

# Enter the time string
time_str = "2019-01-01T00:00:00.000Z"

# Calling the function
print((parse_iso_time(time_str)))

#Example Output
# 2019-01-01 00:00:00

#Remember to inspect code for bugs.