code: def convert_timezone(obj, timezone):
      
      if timezone is None:
          return obj.replace(tzinfo=None)
      return pytz.timezone(timezone).localize(obj)
docs: Convert `obj` to the timezone `timezone`.
  
      Parameters
      ----------
      obj : datetime.date or datetime.datetime
  
      Returns
      -------
      type(obj)