code: def _validate_other_args(
      args, stream_logs, docker_image_build_bucket, called_from_notebook
  ):
      """Validates all non-file/distribution strategy args."""
  
      if args is not None and not isinstance(args, list):
          raise ValueError(
              "Invalid `entry_point_args` input. "
              "Expected None or a list. "
              "Received {}.".format(str(args))
          )
  
      if not isinstance(stream_logs, bool):
          raise ValueError(
              "Invalid `stream_logs` input. "
              "Expected a boolean. "
              "Received {}.".format(str(stream_logs))
          )
  
      if called_from_notebook and docker_image_build_bucket is None:
          raise ValueError(
              "Invalid `docker_config.image_build_bucket` input. "
              "When `run` API is used within a python notebook, "
              "`docker_config.image_build_bucket` is expected to be specifed. We "
              "will use the bucket name in Google Cloud Storage/Build services "
              "for Docker containerization. Received {}.".format(
                  str(docker_image_build_bucket)
              )
          )
  
file_path: cloud/src/python/tensorflow_cloud/core/validate.py
imports: import os
  from .None import gcp
  from .None import machine_config
label_desc: Use image node_id 7 for calling a global function with example usage: _validate_other_args(args, stream_logs, docker_image_build_bucket, called_from_notebook) without return types