docstr: Convert naive time to local time
docstr_tok: ["Convert","naive","time","to","local","time"]
code: def localize(self, dt, is_dst=False):
      """Convert naive time to local time"""
      if dt.tzinfo is not None:
          raise ValueError("Not naive datetime (tzinfo is already set)")
      return dt.replace(tzinfo=self)
  
imports: import sys
  import datetime
  import os.path
  from pytz.exceptions import AmbiguousTimeError
  from pytz.exceptions import InvalidTimeError
  from pytz.exceptions import NonExistentTimeError
  from pytz.exceptions import UnknownTimeZoneError
  from pytz.lazy import LazyDict, LazyList, LazySet
  from pytz.tzinfo import unpickler, BaseTzInfo
  from pytz.tzfile import build_tzinfo
label_desc: Use image node_id 7 for calling the _FixedOffset obj's underlying member method code with example usage: obj.localize(dt, is_dst) and returns: dt