code: def as_generic(self, allow_nulltype=False):
      return sqltypes.Interval(
          native=True,
          second_precision=self.second_precision,
          day_precision=self.day_precision,
      )
  
imports: from __future__ import annotations
  import datetime
  from typing import Optional
  from typing import Type
  from typing import TYPE_CHECKING
  from ...None import exc
  from ...sql import sqltypes
  from ...types import NVARCHAR
  from ...types import VARCHAR
label_desc: Use image node_id 5 for calling the INTERVAL obj's underlying member method code with example usage: obj.as_generic(allow_nulltype) and returns: sqltypes