code: def to_numpy(self, dtype=None, copy=False, na_value=None):
      ret = self.array.to_numpy()
      if na_value is not None:
          ret = np.where(ret == np.nan, na_value, ret)
      if dtype is not None:
          ret = ret.astype(dtype)
      if copy:
          return ret.copy()
      return ret
  
file_path: ivy/ivy/functional/frontends/pandas/generic.py
imports: import ivy
  import numpy
  import copy
  from ivy.functional.frontends.pandas.func_wrapper import outputs_to_self_class
  import ivy.functional.frontends.pandas.series
  from ivy.functional.frontends.pandas.index import Index
label_desc: Use image node_id 4 for calling the NDFrame obj's underlying member method code with example usage: obj.to_numpy(dtype, copy, na_value) and returns: ret, ret