code: def _correct_degree(self):
      degree = self.params.get("degree")
      if not degree or not self.min_degree <= degree <= self.max_degree:
          # default value
          self.log.debug(
              f"Change invalid parameter degree ({degree}) on default value (3)"
          )
          degree = self.default_degree
          self.params.update(degree=degree)
  
file_path: FEDOT/fedot/core/operations/evaluation/operation_implementations/models/ts_implementations/poly.py
imports: from copy import copy
  from typing import Optional
  import numpy
  from fedot.core.data.data import InputData, OutputData
  from fedot.core.operations.evaluation.operation_implementations.data_operations.ts_transformations import ts_to_table
  from fedot.core.operations.evaluation.operation_implementations.implementation_interfaces import ModelImplementation
  from fedot.core.operations.operation_parameters import OperationParameters
  from fedot.core.repository.dataset_types import DataTypesEnum
label_desc: Use image node_id 2 for calling the PolyfitImplementation obj's underlying member method code with example usage: obj._correct_degree() without return types