code: def make_directory_writable(dirname):
      """Makes directory readable and writable by everybody.
  
      Args:
        dirname: name of the directory
  
      Returns:
        True if operation was successfull
  
      If you run something inside Docker container and it writes files, then
      these files will be written as root user with restricted permissions.
      So to be able to read/modify these files outside of Docker you have to change
      permissions to be world readable and writable.
      """
      retval = shell_call(
          [
              "docker",
              "run",
              "-v",
              "{0}:/output_dir".format(dirname),
              "busybox:1.27.2",
              "chmod",
              "-R",
              "a+rwx",
              "/output_dir",
          ]
      )
      if not retval:
          logging.error(
              "Failed to change permissions on directory: %s", dirname
          )
      return retval
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from builtins import int
  import csv
  import json
  import logging
  import os
  import re
  import subprocess
  import numpy
  from six import iteritems
  from PIL import Image
label_desc: Use image node_id 3 for calling a global function with example usage: make_directory_writable(dirname) and returns: retval