class_docstr: Accept line dash specifications.
  
  Express patterns that describe line dashes.  ``DashPattern`` values
  can be specified in a variety of ways:
  
  * An enum: "solid", "dashed", "dotted", "dotdash", "dashdot"
  * a tuple or list of integers in the `HTML5 Canvas dash specification style`_.
    Note that if the list of integers has an odd number of elements, then
    it is duplicated, and that duplicated list becomes the new dash list.
  
  To indicate that dashing is turned off (solid lines), specify the empty
  list [].
  
  .. _HTML5 Canvas dash specification style: http://www.w3.org/html/wg/drafts/2dcontext/html5_canvas/#dash-list
class_docstr_tok: ["Accept","line","dash","specifications",".","Express","patterns","that","describe","line","dashes",".","``","DashPattern","``","values","can","be","specified","in","a","variety","of","ways",":","*","An","enum",":","``","solid","''",",","``","dashed","''",",","``","dotted","''",",","``","dotdash","''",",","``","dashdot","''","*","a","tuple","or","list","of","integers","in","the","`","HTML5","Canvas","dash","specification","style","`","_",".","Note","that","if","the","list","of","integers","has","an","odd","number","of","elements",",","then","it","is","duplicated",",","and","that","duplicated","list","becomes","the","new","dash","list",".","To","indicate","that","dashing","is","turned","off","(","solid","lines",")",",","specify","the","empty","list","[","]",".","..","_HTML5","Canvas","dash","specification","style",":","http",":","\/\/www.w3.org\/html\/wg\/drafts\/2dcontext\/html5_canvas\/","#","dash-list"]
code: def transform(self, value):
      value = super().transform(value)
  
      if isinstance(value, str):
          try:
              return self._dash_patterns[value]
          except KeyError:
              return [int(x) for x in value.split()]
      else:
          return value
  
imports: from __future__ import annotations
  import logging
  import base64
  import datetime
  import re
  import tempfile
  from io import BytesIO
  from pathlib import Path
  from typing import Any, BinaryIO
  from ...util.serialization import convert_datetime_type
  from ..None import enums
  from .auto import Auto
  from .bases import Property
  from .container import Seq, Tuple
  from .datetime import Datetime, TimeDelta
  from .either import Either
  from .enum import Enum
  from .nullable import Nullable
  from .numeric import Float, Int
  from .primitive import String
  from .string import Regex
label_desc: Use image node_id 3 for calling the DashPattern obj's underlying member method code with example usage: obj.transform(value) and returns: value, self, unknown