code: def cli(env, name, note, os_code, uri, ibm_api_key, root_key_crn, wrapped_dek,
          cloud_init, byol, is_encrypted):
      
  
      image_mgr = SoftLayer.ImageManager(env.client)
      result = image_mgr.import_image_from_uri(
          name=name,
          note=note,
          os_code=os_code,
          uri=uri,
          ibm_api_key=ibm_api_key,
          root_key_crn=root_key_crn,
          wrapped_dek=wrapped_dek,
          cloud_init=cloud_init,
          byol=byol,
          is_encrypted=is_encrypted
      )
  
      if not result:
          raise exceptions.CLIAbort("Failed to import Image")
  
      table = formatting.KeyValueTable(['name', 'value'])
      table.align['name'] = 'r'
      table.align['value'] = 'l'
      table.add_row(['name', result['name']])
      table.add_row(['id', result['id']])
      table.add_row(['created', result['createDate']])
      table.add_row(['guid', result['globalIdentifier']])
      env.fout(table)
docs: Import an image.
  
      The URI for an object storage object (.vhd/.iso file) of the format:
      swift://<objectStorageAccount>@<cluster>/<container>/<objectPath>
      or cos://<regionName>/<bucketName>/<objectPath> if using IBM Cloud
      Object Storage