class_docstr: Mixin class to make a texture aware of color limits.
  
  This class contains the shared functionality for the CPU and GPU mixin
  classes below. In some cases this class provides a "generic"
  implementation of a specific method and is then overridden by one of the
  subclasses.
  
  Parameters
  ----------
  data : ndarray | tuple | None
      Texture data in the form of a numpy array. A tuple of the shape of the
      texture can also be given. However, some subclasses may benefit from
      or even require a numpy array to make decisions based on shape **and**
      dtype.
  **texture_kwargs
      Any other keyword arguments to pass to the parent TextureXD class.
class_docstr_tok: ["Mixin","class","to","make","a","texture","aware","of","color","limits",".","This","class","contains","the","shared","functionality","for","the","CPU","and","GPU","mixin","classes","below",".","In","some","cases","this","class","provides","a","``","generic","''","implementation","of","a","specific","method","and","is","then","overridden","by","one","of","the","subclasses",".","Parameters","--","--","--","--","--","data",":","ndarray","|","tuple","|","None","Texture","data","in","the","form","of","a","numpy","array",".","A","tuple","of","the","shape","of","the","texture","can","also","be","given",".","However",",","some","subclasses","may","benefit","from","or","even","require","a","numpy","array","to","make","decisions","based","on","shape","*","*","and","*","*","dtype",".","*","*","texture_kwargs","Any","other","keyword","arguments","to","pass","to","the","parent","TextureXD","class","."]
docstr: Get a representative array with an initial shape.
  
  Data will be filled in and the texture resized later.
docstr_tok: ["Get","a","representative","array","with","an","initial","shape",".","Data","will","be","filled","in","and","the","texture","resized","later","."]
code: def _create_rep_array(self, data):
      """Get a representative array with an initial shape.
  
      Data will be filled in and the texture resized later.
  
      """
      dtype = getattr(data, "dtype", np.float32)
      num_channels = self._data_num_channels(data)
      init_shape = (10,) * self._ndim + (num_channels,)
      return np.zeros(init_shape).astype(dtype)
  
imports: import warnings
  import numpy
  from vispy.gloo.texture import Texture2D, Texture3D, convert_dtype_and_clip
label_desc: Use image node_id 10 for calling the _ScaledTextureMixin obj's underlying member method code with example usage: obj._create_rep_array(data) and returns: np