docstr: Create channel credentials and options.
  
  Returns:
    A tuple `(channel_creds, channel_options)`, where `channel_creds`
    is a `grpc.ChannelCredentials` and `channel_options` is a
    (potentially empty) list of `(key, value)` tuples. Both results
    may be passed to `grpc.secure_channel`.
docstr_tok: ["Create","channel","credentials","and","options",".","Returns",":","A","tuple","`","(","channel_creds",",","channel_options",")","`",",","where","`","channel_creds","`","is","a","`","grpc.ChannelCredentials","`","and","`","channel_options","`","is","a","(","potentially","empty",")","list","of","`","(","key",",","value",")","`","tuples",".","Both","results","may","be","passed","to","`","grpc.secure_channel","`","."]
code: def channel_config(self):
      """Create channel credentials and options.
  
      Returns:
        A tuple `(channel_creds, channel_options)`, where `channel_creds`
        is a `grpc.ChannelCredentials` and `channel_options` is a
        (potentially empty) list of `(key, value)` tuples. Both results
        may be passed to `grpc.secure_channel`.
      """
  
      options = []
      if self == ChannelCredsType.LOCAL:
          creds = grpc.local_channel_credentials()
      elif self == ChannelCredsType.SSL:
          creds = grpc.ssl_channel_credentials()
      elif self == ChannelCredsType.SSL_DEV:
          # Configure the dev cert to use by passing the environment variable
          # GRPC_DEFAULT_SSL_ROOTS_FILE_PATH=path/to/cert.crt
          creds = grpc.ssl_channel_credentials()
          options.append(("grpc.ssl_target_name_override", "localhost"))
      else:
          raise AssertionError("unhandled ChannelCredsType: %r" % self)
      return (creds, options)
  
imports: import enum
  import functools
  import random
  import threading
  import time
  import grpc
  from tensorboard import version
  from tensorboard.util import tb_logging
label_desc: Use image node_id 1 for calling the ChannelCredsType obj's underlying member method code with example usage: obj.channel_config() and returns: creds,  options