code: def _get_line_styles(marker_str):
      
      def _extract_marker_value(marker_str, code_dict):
          """Extracts the marker value from a given marker string.
  
          Looks up the `code_dict` and returns the corresponding marker for a
          specific code.
  
          For example if `marker_str` is 'g-o' then the method extracts
          - 'green' if the code_dict is color_codes,
          - 'circle' if the code_dict is marker_codes etc.
          """
          val = None
          for code in code_dict:
              if code in marker_str:
                  val = code_dict[code]
                  break
          return val
  
      return [_extract_marker_value(marker_str, code_dict) for
              code_dict in [LINE_STYLE_CODES, COLOR_CODES, MARKER_CODES]]
docs: Return line style, color and marker type from specified marker string.
  
      For example, if ``marker_str`` is 'g-o' then the method returns
      ``('solid', 'green', 'circle')``.