code: def mul_or_none(a, b):
      """Return the element wise multiplicative of the inputs.
  
      If either input is None, we return None.
  
      Args:
        a: A tensor input.
        b: Another tensor input with the same type as a.
  
      Returns:
        None if either input is None. Otherwise returns a * b.
      """
      if a is None or b is None:
          return None
      return int(a * b)
  
file_path: magenta/magenta/models/nsynth/wavenet/masked.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import tensorflow.compat.v1
label_desc: Use image node_id 2 for calling a global function with example usage: mul_or_none(a, b) and returns: int, None