docstr: Check the expected result of column.latest from a pipeline.
          
docstr_tok: ["Check","the","expected","result","of","column.latest","from","a","pipeline","."]
code: def check_expected_latest_value(
      self, calendar, col, date, asset, value
  ):
      """Check the expected result of column.latest from a pipeline."""
      if np.isnan(value):
          # If we got a NaN, we should be outside the asset's
          # lifetime.
          self.assertTrue(
              date <= asset.start_date or date > asset.end_date
          )
      else:
          self.assertTrue(asset.start_date < date <= asset.end_date)
          bars = self.daily_bar_data[calendar.name]
          # Subtract a day because pipeline shows values as of the morning
          expected_value = bars[asset.sid].loc[date - calendar.day, col]
          assert_equal(value, expected_value)
  
imports: from itertools import cycle, islice
  from nose_parameterized import parameterized
  import numpy
  import pandas
  from trading_calendars import get_calendar
  from zipline.assets.synthetic import make_rotating_equity_info
  from zipline.data.in_memory_daily_bars import InMemoryDailyBarReader
  from zipline.pipeline.domain import CA_EQUITIES, GB_EQUITIES, US_EQUITIES
  from zipline.pipeline import Pipeline
  from zipline.pipeline.data import EquityPricing, USEquityPricing
  from zipline.pipeline.engine import SimplePipelineEngine
  from zipline.pipeline.loaders.equity_pricing_loader import EquityPricingLoader
  from zipline.pipeline.loaders.synthetic import NullAdjustmentReader
  from zipline.testing.predicates import assert_equal
  from zipline.testing.core import parameter_space, random_tick_prices
  import zipline.testing.fixtures
label_desc: Use image node_id 8 for calling the InternationalEquityTestCase obj's underlying member method code with example usage: obj.check_expected_latest_value(calendar, col, date, asset, value) without return types