code: def test_nat_fields(nat, idx):
      for field in idx._field_ops:
          # weekday is a property of DTI, but a method
          # on NaT/Timestamp for compat with datetime
          if field == "weekday":
              continue
  
          result = getattr(NaT, field)
          assert np.isnan(result)
  
          result = getattr(nat, field)
          assert np.isnan(result)
  
      for field in idx._bool_ops:
          result = getattr(NaT, field)
          assert result is False
  
          result = getattr(nat, field)
          assert result is False
  
imports: from datetime import datetime, timedelta
  import operator
  import numpy
  import pytest
  import pytz
  from pandas._libs.tslibs import iNaT
  from pandas.compat.numpy import np_version_gte1p24p3
  from pandas import DatetimeIndex, DatetimeTZDtype, Index, NaT, Period, Series, Timedelta, TimedeltaIndex, Timestamp, isna, offsets
  import pandas._testing
  from pandas.core import roperator
  from pandas.core.arrays import DatetimeArray, PeriodArray, TimedeltaArray
label_desc: Use image node_id 1 for calling a global function with example usage: test_nat_fields(nat, idx) without return types