class_docstr: Simple OperationsFilter implementation based on two lists:
  one for all available operations, another for sampling operations. 
class_docstr_tok: ["Simple","OperationsFilter","implementation","based","on","two","lists",":","one","for","all","available","operations",",","another","for","sampling","operations","."]
code: def __init__(
      self,
      available_operations: Iterable[str],
      available_task_operations: Optional[Iterable[str]] = None,
  ):
      super().__init__()
      self._whitelist = tuple(available_operations)
      self._choice_operations = (
          tuple(available_task_operations)
          if available_task_operations
          else self._whitelist
      )
  
file_path: FEDOT/fedot/api/api_utils/assumptions/operations_filter.py
imports: from abc import abstractmethod
  from random import choice
  from typing import Optional, Iterable
  from fedot.core.pipelines.pipeline import Pipeline
  from fedot.utilities.custom_errors import AbstractMethodNotImplementError
label_desc: Use image node_id 1 to create a new WhitelistOperationsFilter object from inherited base classes: OperationsFilter with example: obj = WhitelistOperationsFilter(available_operations, available_task_operations)