code: def create_character(skin, hair, top, pants):
      """Creates a character sprite from a set of attribute sprites."""
      dtype = skin.dtype
      hair_mask = tf.cast(hair[..., -1:] <= 0, dtype)
      top_mask = tf.cast(top[..., -1:] <= 0, dtype)
      pants_mask = tf.cast(pants[..., -1:] <= 0, dtype)
      char = (skin * hair_mask) + hair
      char = (char * top_mask) + top
      char = (char * pants_mask) + pants
      return char
  
file_path: probability/tensorflow_probability/examples/sprites_dataset.py
imports: from collections import namedtuple
  import os
  import random
  import zipfile
  from absl import flags
  from six.moves import urllib
  import tensorflow.compat.v1
  from tensorflow.python.ops import lookup_ops
label_desc: Use image node_id 4 for calling a global function with example usage: create_character(skin, hair, top, pants) and returns: char