class_docstr: Class of Unit test for style_utils
class_docstr_tok: ["Class","of","Unit","test","for","style_utils"]
docstr: check rgb() or rgba() format of a str variable
docstr_tok: ["check","rgb","(",")","or","rgba","(",")","format","of","a","str","variable"]
code: def rgb_string_detector(self, string_val):
      """
      check rgb() or rgba() format of a str variable
      """
      matching = re.match(
          r"^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$",
          string_val,
      )
      matching = False if matching is None else True
      return matching
  
file_path: shapash/tests/unit_tests/style/test_style_utils.py
imports: import unittest
  import re
  from shapash.style.style_utils import colors_loading, select_palette, define_style, convert_str_color_to_plt_format, get_pyplot_color
label_desc: Use image node_id 2 for calling the TestStyle_utils obj's underlying member method code with example usage: obj.rgb_string_detector(string_val) and returns: matching