code: def get_device_alloc(self):
      if self.dev_alloc is None:
          try:
              self.dev_alloc = mem_alloc_like(self.array)
          except AttributeError:
              raise TypeError(
                  "could not determine array length of '%s': unsupported array type or not an array"
                  % type(self.array)
              )
      return self.dev_alloc
  
imports: import os
  import numpy
label_desc: Use image node_id 2 for calling the ArgumentHandler obj's underlying member method code with example usage: obj.get_device_alloc() and returns: self