docstr: Ensure that 'option' is a list of strings.  If 'option' is
  currently a string, we split it either on /,\s*/ or /\s+/, so
  "foo bar baz", "foo,bar,baz", and "foo,   bar baz" all become
  ["foo", "bar", "baz"].
docstr_tok: ["Ensure","that","'option","'","is","a","list","of","strings",".","If","'option","'","is","currently","a","string",",","we","split","it","either","on","\/",",","\\s","*","\/","or","\/\\s+\/",",","so","''","foo","bar","baz","''",",","``","foo",",","bar",",","baz","''",",","and","``","foo",",","bar","baz","''","all","become","[","``","foo","''",",","``","bar","''",",","``","baz","''","]","."]
code: def ensure_string_list(self, option):
      r"""Ensure that 'option' is a list of strings.  If 'option' is
      currently a string, we split it either on /,\s*/ or /\s+/, so
      "foo bar baz", "foo,bar,baz", and "foo,   bar baz" all become
      ["foo", "bar", "baz"].
      """
      val = getattr(self, option)
      if val is None:
          return
      elif isinstance(val, string_types):
          setattr(self, option, re.split(r",\s*|\s+", val))
      else:
          if isinstance(val, list):
              ok = all(isinstance(v, string_types) for v in val)
          else:
              ok = False
          if not ok:
              raise DistutilsOptionError(
                  "'%s' must be a list of strings (got %r)"
                  % (option, val)
              )
  
imports: import os
  import sys
  import functools
  import distutils.core
  import distutils.filelist
  import re
  from distutils.errors import DistutilsOptionError
  from distutils.util import convert_path
  from fnmatch import fnmatchcase
  from ._deprecation_warning import SetuptoolsDeprecationWarning
  from setuptools.extern.six import PY3, string_types
  from setuptools.extern.six.moves import filter, map
  import setuptools.version
  from setuptools.extension import Extension
  from setuptools.dist import Distribution, Feature
  from setuptools.depends import Require
  from .None import monkey
label_desc: Use image node_id 3 for calling the Command obj's underlying member method code with example usage: obj.ensure_string_list(option) without return types