code: def get_error_bar(
      axis="y",
      type="data",
      values=None,
      values_minus=None,
      color=None,
      thickness=1,
      width=5,
      opacity=1,
  ):
      # error=ErrorY() if axis=='y' else ErrorX()
      error = {}
      if type == "data":
          if isinstance(values, list) or isinstance(values, np.ndarray):
              if values_minus:
                  if len(values) != len(values_minus):
                      raise Exception(
                          "Array values need to be of same length"
                      )
                  error.update(symmetric=False, arrayminus=values_minus)
              error.update(array=values)
          else:
              if values_minus:
                  if isinstance(values_minus, list) or isinstance(
                      values_minus, np.ndarray
                  ):
                      raise Exception(
                          "Values should be of same type (int, float)"
                      )
                  error.udpate(symmetric=False, valueminus=values_minus)
              error.update(value=values)
      elif type in ["percent", "constant"]:
          if isinstance(values, list) or isinstance(values, np.ndarray):
              raise Exception("Value should be of type (int, float)")
          error.update(value=values)
      elif type == "sqrt":
          pass
      else:
          raise Exception("Invalid type: {0}".format(type))
      error.update(
          type=type, thickness=thickness, width=width, visible=True
      )
      if color:
          error.update(color=to_rgba(color, opacity))
      return error
  
imports: import copy
  import numpy
  import pandas
  import plotly.offline
  import plotly.figure_factory
  from plotly.graph_objs import Figure, Scatter, Line
  from plotly.subplots import make_subplots
  from .None import themes
  from .None import auth, ta
  from .colors import normalize, to_rgba
  from .utils import check_kwargs, deep_update, dict_replace_keyword, kwargs_from_keyword, merge_dict, is_list, make_list
label_desc: Use image node_id 27 for calling a global function with example usage: get_error_bar(axis, type, values, values_minus, color, thickness, width, opacity) and returns: error