code: def logical_or(f1, f2):  # function factory
      '''Logical or from functions.
  
      Parameters
      ----------
      f1, f2 : function
          Function that takes array and returns true or false for each item in array.
  
      Returns
      -------
      Function
      '''
      def f_or(arr):
          return np.logical_or(f1(arr), f2(arr))
      f_or.__name__ = f1.__name__ + "_or_" + f2.__name__
      return f_of logical_or(f1, f2):  # function factory
      '''Logical or from functions.
  
      Parameters
      ----------
      f1, f2 : function
          Function that takes array and returns true or false for each item in array.
  
      Returns
      -------
      Function
      '''
      def f_or(arr):
          return np.logical_or(f1(arr), f2(arr))
      f_or.__name__ = f1.__name__ + "_or_" + f2.__name__
      return f_or
docs: Logical or from functions.
  
      Parameters
      ----------
      f1, f2 : function
          Function that takes array and returns true or false for each item in array.
  
      Returns
      -------
      Function