class_docstr: Base strategy for trading
class_docstr_tok: ["Base","strategy","for","trading"]
code: def reset_level_infra(self, level_infra: LevelInfrastructure) -> None:
      if not hasattr(self, "level_infra"):
          self.level_infra = level_infra
      else:
          self.level_infra.update(level_infra)
  
imports: from __future__ import annotations
  from abc import ABCMeta, abstractmethod
  from typing import Any, Generator, Optional, TYPE_CHECKING, Union
  from typing import Tuple
  from ..backtest.decision import BaseTradeDecision
  from ..backtest.utils import CommonInfrastructure, LevelInfrastructure, TradeCalendarManager
  from ..rl.interpreter import ActionInterpreter, StateInterpreter
  from ..utils import init_instance_by_config
label_desc: Use image node_id 6 for calling the BaseStrategy obj's underlying member method code with example usage: obj.reset_level_infra(level_infra) without return types