class_docstr: Randomly adjust image brightness. Operates on raw arrays (not tensors).
  
  Parameters
  ----------
  magnitude : float
      randomly choose brightness enhancement factor on [max(0, 1-magnitude), 1+magnitude]
  p : float
      probability to apply brightness
class_docstr_tok: ["Randomly","adjust","image","brightness",".","Operates","on","raw","arrays","(","not","tensors",")",".","Parameters","--","--","--","--","--","magnitude",":","float","randomly","choose","brightness","enhancement","factor","on","[","max","(","0",",","1-magnitude",")",",","1+magnitude","]","p",":","float","probability","to","apply","brightness"]
code: def declare_state_and_memory(self, previous_state):
      return (
          replace(previous_state, jit_mode=True),
          AllocationQuery(previous_state.shape, previous_state.dtype),
      )
  
imports: import numpy
  from dataclasses import replace
  from ..pipeline.allocation_query import AllocationQuery
  from ..pipeline.operation import Operation
  from ..pipeline.state import State
  from ..pipeline.compiler import Compiler
label_desc: Use image node_id 3 for calling the RandomBrightness obj's underlying member method code with example usage: obj.declare_state_and_memory(previous_state) and returns: replace,  AllocationQuery