code: def _find_convertable_object(self, data):
          
          data = list(data)
          convertable_object_idxs = [
              idx
              for idx, obj
              in enumerate(data)
              if obj.get('kind') in self.pod_types.keys()
          ]
          if len(convertable_object_idxs) < 1:
              raise Exception("Kubernetes config didn't contain any of {}".format(
                  ', '.join(self.pod_types.keys())
              ))
          return list(data)[convertable_object_idxs[0]]
docs: Get the first instance of a `self.pod_types`