docstr_tok: []
code: def sample(self, *args) -> Union[List[Pipeline], Pipeline]:
      """ """
  
      sample_size, node = args
      samples: List[np.array] = self.sample_method(
          self.problem.dictionary, num_of_samples=sample_size
      )
  
      converted_samples: List[
          dict
      ] = self.problem.convert_sample_to_dict(samples)
      sampled_pipelines: List[Pipeline] = self._apply_params_to_node(
          params=converted_samples, node=node
      )
  
      return sampled_pipelines
  
imports: from copy import deepcopy
  from os.path import join
  from threading import Lock, Thread
  from typing import List, Union
  import matplotlib.pyplot
  import numpy
  from golem.core.log import default_log
  from sklearn.metrics import mean_squared_error
  from fedot.core.data.data import InputData
  from fedot.core.operations.operation_template import extract_operation_params
  from fedot.core.pipelines.node import PipelineNode
  from fedot.core.pipelines.pipeline import Pipeline
  from fedot.core.utils import default_fedot_data_dir
  from fedot.structural_analysis.node_sa_approaches import NodeAnalyzeApproach
  from fedot.structural_analysis.operations_hp_sensitivity.problem import OneOperationProblem
  from fedot.structural_analysis.operations_hp_sensitivity.sa_and_sample_methods import analyze_method_by_name, sample_method_by_name
  from fedot.structural_analysis.sa_requirements import HyperparamsAnalysisMetaParams, SensitivityAnalysisRequirements
label_desc: Use image node_id 3 for calling the OneOperationHPAnalyze obj's underlying member method code with example usage: obj.sample() and returns: sampled_pipelines