class_docstr: Testcase for dataset metadata.
class_docstr_tok: ["Testcase","for","dataset","metadata","."]
code: def _apply_yaw_flip(self, data_array, yaw_flip):
      if yaw_flip:
          data_array.data = np.flipud(data_array.data)
      return data_array
  
imports: import datetime
  import unittest
  from unittest import mock
  import numpy
  import pytest
  import xarray
  from pyresample.geometry import AreaDefinition
  from satpy.readers.goes_imager_nc import is_vis_channel
  from satpy.tests.utils import make_dataid
label_desc: Use image node_id 3 for calling the TestMetadata obj's underlying member method code with example usage: obj._apply_yaw_flip(data_array, yaw_flip) and returns: data_array