def METHOD_NAME(version=None, img_name=None, img_update=None,
                         port=None, auth_key=None, auth_bucket=None,
                         logdir=None):
    dockerrun = {}
    if version:
        dockerrun[dr.VERSION_KEY] = version
    if img_name or img_update:
        dockerrun[dr.IMG_KEY] = {}
    if img_name:
        dockerrun[dr.IMG_KEY][dr.IMG_NAME_KEY] = img_name
    if img_update:
        dockerrun[dr.IMG_KEY][dr.IMG_UPDATE_KEY] = img_update
    if port:
        dockerrun[dr.PORTS_KEY] = [{dr.CONTAINER_PORT_KEY: port}]
    if auth_key or auth_bucket:
        dockerrun[dr.AUTH_KEY] = {}
    if auth_key:
        dockerrun[dr.AUTH_KEY][dr.AUTHKEY_KEY] = auth_key
    if auth_bucket:
        dockerrun[dr.AUTH_KEY][dr.AUTH_BUCKET_KEY] = auth_bucket
    if logdir:
        dockerrun[dr.LOGGING_KEY] = logdir
    return dockerrun