code: def get_extent(self, is_remove_outliers: bool):
      if len(self.value) == 0:
          return [0, 0]
      elif len(self.value) < 10:
          return [min(self.value), max(self.value)]
      elif not is_remove_outliers:
          return [min(self.value), max(self.value)]
  
      values = np.sort(self.value)
      margin = max(int(len(values) * OUTLIER_MARGIN), 1)
      std_dev = np.std(self.value[margin:-margin])
      start = 0
      while start < margin:
          if values[start] + std_dev * 2 > values[margin]:
              break
          start += 1
      end = len(values) - 1
      while end > len(values) - margin - 1:
          if values[end] - std_dev * 2 < values[-margin]:
              break
          end -= 1
  
      return [values[start], values[end]]
  
imports: import math
  from typing import Dict, List, Optional, Union
  from datetime import datetime, timedelta
  import numpy
label_desc: Use image node_id 13 for calling the Series obj's underlying member method code with example usage: obj.get_extent(is_remove_outliers) and returns: list, list, list, list