code: def create(_):
      
  
      endpoint = client_endpoint()
  
      if not endpoint:
          raise CLIError("Connection endpoint not found. "
                         "Before running sfctl commands, connect to a cluster using "
                         "the 'sfctl cluster select' command.")
  
      no_verify = no_verify_setting()
  
      if security_type() == 'aad':
          auth = AdalAuthentication(no_verify)
      else:
          cert = cert_info()
          ca_cert = ca_cert_info()
          auth = ClientCertAuthentication(cert, ca_cert, no_verify)
  
      return ServiceFabricClientAPIs(auth, base_url=endpoint)
docs: Create a client for Service Fabric APIs.