def _copy_array_if_base_present(a):
 if (a.base is not None):
  return a.copy()
 return a

def _copy_array_if_base_present ( a ) : if ( a . base is not None ) : return a . copy ( ) return a
copies the array if its base points to a parent array .