original_docstring: 
      Perform a regex match with the provided LUT name, to identify in which category
      the LUT falls into:
  
      input:
          lut_name = A5LUT
  
      output:
          lut_type = LUT5
          lut_loc  = A
      
docstring: Perform a regex match with the provided LUT name, to identify in which category
  the LUT falls into.
  
  
  
  
docstring_tokens: Perform a regex match with the provided LUT name to identify in which category the LUT falls into .
code: def parse_lut_bel(lut_bel):
      """
      Perform a regex match with the provided LUT name, to identify in which category
      the LUT falls into:
  
      input:
          lut_name = A5LUT
  
      output:
          lut_type = LUT5
          lut_loc  = A
      """
  
      bel_re = re.compile("([ABCD])([56])LUT")
  
      m = bel_re.match(lut_bel)
      assert m, lut_bel
  
      # A, B, C or D
      lut_loc = m.group(1)
  
      # LUT5 or LUT6
      lut_type = "LUT{}".format(m.group(2))
  
      return lut_loc, lut_type
code_tokens: def parse_lut_bel ( lut_bel ) : bel_re = re . compile ( "([ABCD])([56])LUT" ) m = bel_re . match ( lut_bel ) assert m , lut_bel lut_loc = m . group ( 1 ) lut_type = "LUT{}" . format ( m . group ( 2 ) ) return lut_loc , lut_type
short_docstring: Perform a regex match with the provided LUT name, to identify in which category
  the LUT falls into:
short_docstring_tokens: Perform a regex match with the provided LUT name to identify in which category the LUT falls into :
comment: """
      Perform a regex match with the provided LUT name, to identify in which category
      the LUT falls into:
  
      input:
          lut_name = A5LUT
  
      output:
          lut_type = LUT5
          lut_loc  = A
      """$SEP$# A, B, C or D$SEP$# LUT5 or LUT6