code: def _filterByPaddingNum(cls, iterable, num):
          
          _check = DISK_RE.match
  
          for item in iterable:
              # Add a filter for paths that don't match the frame
              # padding of a given number
              matches = _check(item)
              if not matches:
                  if num <= 0:
                      # Not a sequence pattern, but we were asked
                      # to match on a zero padding
                      yield item
  
                  continue
  
              frame = matches.group(3) or ''
  
              if not frame:
                  if num <= 0:
                      # No frame value was parsed, but we were asked
                      # to match on a zero padding
                      yield item
                  continue
  
              # We have a frame number
  
              if frame[0] == '0' or frame[:2] == '-0':
                  if len(frame) == num:
                      # A frame leading with '0' is explicitly
                      # padded and can only be a match if its exactly
                      # the target padding number
                      yield item
                  continue
  
              if len(frame) >= num:
                  # A frame that does not lead with '0' can match
                  # a padding width >= to the target padding number
                  yield item
                  continue
docs: Yield only path elements from iterable which have a frame
          padding that matches the given target padding number
  
          Args:
              iterable (collections.Iterable):
              num (int):
  
          Yields:
              str: