class_docstr: The correctness of the metrics of Account in nested execution depends on the shallow copy of `trade_account` in
  qlib/backtest/executor.py:NestedExecutor
  Different level of executor has different Account object when calculating metrics. But the position object is
  shared cross all the Account object.
docstr: Is portfolio-based metrics enabled.
docstr_tok: ["Is","portfolio-based","metrics","enabled","."]
code: def is_port_metr_enabled(self) -> bool:
      """
      Is portfolio-based metrics enabled.
      """
      return (
          self._port_metr_enabled
          and not self.current_position.skip_update()
      )
  
imports: from __future__ import annotations
  import copy
  from typing import Dict, List, Optional, Tuple, cast
  import pandas
  from qlib.utils import init_instance_by_config
  from .decision import BaseTradeDecision, Order
  from .exchange import Exchange
  from .high_performance_ds import BaseOrderIndicator
  from .position import BasePosition
  from .report import Indicator, PortfolioMetrics
label_desc: Use image node_id 3 for calling the Account obj's underlying member method code with example usage: obj.is_port_metr_enabled() and returns: unknown