code: def reshape_dataobj(obj, shape):
      """Use `obj` reshape method if possible, else numpy reshape function"""
      return (
          obj.reshape(shape)
          if hasattr(obj, "reshape")
          else np.reshape(obj, shape)
      )
  
imports: from __future__ import annotations
  import typing
  import warnings
  from contextlib import contextmanager
  from threading import RLock
  import numpy
  from .None import openers
  from .fileslice import canonical_slicers, fileslice
  from .volumeutils import apply_read_scaling, array_from_file
label_desc: Use image node_id 2 for calling a global function with example usage: reshape_dataobj(obj, shape) and returns: unknown