code: def some(arr):
      """Return True iff there is an element, a, of arr such that a is not None.
  
      Args:
          arr:
      """
      return functools.reduce(
          lambda x, y: x or (y is not None), arr, False
      )
  
file_path: sagemaker-python-sdk/src/sagemaker/logs.py
imports: from __future__ import absolute_import
  import collections
  import functools
  import os
  import sys
label_desc: Use image node_id 2 for calling a global function with example usage: some(arr) and returns: functools