code: def test_segmented_hash__limit_segments(self):
      segmented_orig = imagehash.crop_resistant_hash(self.image)
      segmented_limit = imagehash.crop_resistant_hash(
          self.image, limit_segments=1
      )
      self.assertGreaterEqual(
          len(segmented_orig.segment_hashes),
          len(segmented_limit.segment_hashes),
          "Limit segments should mean there are fewer segments",
      )
      self.assertEqual(
          len(segmented_limit.segment_hashes),
          1,
          "Limit segments should correctly limit the segment count",
      )
  
file_path: imagehash/tests/test_crop_resistant_hash.py
imports: from __future__ import absolute_import, division, print_function
  import unittest
  from datetime import datetime
  import imagehash
  from .utils import TestImageHash
label_desc: Use image node_id 4 for calling the Test obj's underlying member method code with example usage: obj.test_segmented_hash__limit_segments() without return types