code: def pad_decr(ids):
      """Strip ID 0 and decrement ids by 1."""
      if len(ids) < 1:
          return list(ids)
      if not any(ids):
          return []  # all padding.
      idx = -1
      while not ids[idx]:
          idx -= 1
      if idx == -1:
          ids = ids  # pylint: disable=self-assigning-variable
      else:
          ids = ids[: idx + 1]
      return [i - 1 for i in ids]
  
imports: from __future__ import unicode_literals
  import abc
  import hashlib
  import json
  import re
  from tensorflow_datasets.core.utils.lazy_imports_utils import tensorflow
label_desc: Use image node_id 2 for calling a global function with example usage: pad_decr(ids) and returns: unknown, list, list