class_docstr: Unit tests for RandomHorizontalFlip.
class_docstr_tok: ["Unit","tests","for","RandomHorizontalFlip","."]
docstr: Tests hflip function by applying it twice and matching with original.
docstr_tok: ["Tests","hflip","function","by","applying","it","twice","and","matching","with","original","."]
code: def test_hflip_twice(self, n, h, w):
      """Tests hflip function by applying it twice and matching with original."""
      features = fake_decoded_features(n, h, w)
  
      features_copy = copy.deepcopy(features)
      features_flip = transforms.hflip(features_copy)
      features_recon = transforms.hflip(features_flip)
  
      self._assert_features_equal(
          features,
          features_recon,
          msg="flip_twice mismatch at features",
      )
  
imports: import copy
  from absl.testing import absltest
  from absl.testing import parameterized
  import numpy
  from scenic.projects.baselines.detr import transforms
  import tensorflow
label_desc: Use image node_id 1 for calling the RandomHorizontalFlipTest obj's underlying member method code with example usage: obj.test_hflip_twice(n, h, w) without return types