code: def max(a, b):
      """Takes the elementwise maximum of a blob and a scalar value."""
      if type(a) is Blob:
          if a.size == 0:
              raise ValueError("The blob shouldn't be empty.")
          return Blob(PythonWrapper.blob_max(a._internal, float(b)))
      elif type(b) is Blob:
          if b.size == 0:
              raise ValueError("The blob shouldn't be empty.")
          return Blob(PythonWrapper.blob_max(float(a), b._internal))
  
      raise ValueError(
          "At least one of `a` and `b` should be neoml.Blob."
      )
  
imports: import neoml
  import neoml.PythonWrapper
  from neoml.MathEngine import MathEngine
  from neoml.Blob import Blob
  import numpy
label_desc: Use image node_id 6 for calling a global function with example usage: max(a, b) and returns: Blob, Blob