code: def earnings(self) -> dict:
      if self._earnings is None:
          raise YFNotImplementedError("earnings")
      return self._earnings
  
file_path: yfinance/yfinance/scrapers/fundamentals.py
imports: import datetime
  import json
  import pandas
  from yfinance import utils, const
  from yfinance.data import YfData
  from yfinance.exceptions import YFinanceException, YFNotImplementedError
label_desc: Use image node_id 3 for calling the Fundamentals obj's underlying member method code with example usage: obj.earnings() and returns: self