code: def _convert_template_option(template):
      '''Convert Tabula app template to tabula-py option
  
      Args:
          template (dict): Tabula app template
  
      Returns:
          `obj`:dict: tabula-py option
      '''
  
      option = {}
      extraction_method = template.get('extraction_method')
      if extraction_method == 'guess':
          option['guess'] = True
      elif extraction_method == 'lattice':
          option['lattice'] = True
      elif extraction_method == 'stream':
          option['stream'] = True
  
      option['pages'] = template.get('page')
      option['area'] = [round(template['y1'], 3), round(template['x1'], 3), round(template['y2'], 3), round(template['x2'], 3)]
  
      return optiof _convert_template_option(template):
      '''Convert Tabula app template to tabula-py option
  
      Args:
          template (dict): Tabula app template
  
      Returns:
          `obj`:dict: tabula-py option
      '''
  
      option = {}
      extraction_method = template.get('extraction_method')
      if extraction_method == 'guess':
          option['guess'] = True
      elif extraction_method == 'lattice':
          option['lattice'] = True
      elif extraction_method == 'stream':
          option['stream'] = True
  
      option['pages'] = template.get('page')
      option['area'] = [round(template['y1'], 3), round(template['x1'], 3), round(template['y2'], 3), round(template['x2'], 3)]
  
      return option
docs: Convert Tabula app template to tabula-py option
  
      Args:
          template (dict): Tabula app template
  
      Returns:
          `obj`:dict: tabula-py option