code: def __attrs_post_init__(self):
      if (self.labels is not None) and (
          len(self.labels) != self.data.shape[0]
      ):
          raise ValueError(
              "If 'labels' is provided, it must be a list or tuple, "
              "the same length as the data"
          )
  
imports: import json
  import numpy
  from ..errors import UsageError
  from ..utilities.dicts import merge_dicts
  from attr import attrs, attrib
label_desc: Use image node_id 2 for calling the SeriesInfo obj's underlying member method code with example usage: obj.__attrs_post_init__() without return types