code: def test_rows_count(yahoo_finance_connector):
      with patch.object(yf.Ticker, "history") as mock_history:
          mock_history.return_value = pd.DataFrame(
              {
                  "Open": [1.0, 2.0, 3.0, 4.0, 5.0],
                  "High": [2.0, 3.0, 4.0, 5.0, 6.0],
                  "Low": [0.5, 1.5, 2.5, 3.5, 4.5],
                  "Close": [1.5, 2.5, 3.5, 4.5, 5.5],
                  "Volume": [100, 200, 300, 400, 500],
              }
          )
          assert yahoo_finance_connector.rows_count == 5
  
file_path: pandas-ai/tests/connectors/test_yahoo_finance.py
imports: from unittest.mock import patch
  import pandas
  import pytest
  import yfinance
  from pandasai.connectors.yahoo_finance import YahooFinanceConnector
label_desc: Use image node_id 7 for calling a global function with example usage: test_rows_count(yahoo_finance_connector) without return types