code: def _validate_coerce_subplot_type(subplot_type):
      # Lowercase subplot_type
      orig_subplot_type = subplot_type
      subplot_type = subplot_type.lower()
  
      # Check if it's a named subplot type
      if subplot_type in _subplot_types:
          return subplot_type
  
      # Try to determine subplot type for trace
      subplot_type = _subplot_type_for_trace_type(subplot_type)
  
      if subplot_type is None:
          raise ValueError(
              "Unsupported subplot type: {}".format(
                  repr(orig_subplot_type)
              )
          )
      else:
          return subplot_type
  
file_path: catboost/contrib/python/plotly/py2/plotly/subplots.py
imports: from __future__ import absolute_import, unicode_literals
  import collections
label_desc: Use image node_id 8 for calling a global function with example usage: _validate_coerce_subplot_type(subplot_type) and returns: subplot_type, subplot_type