Hi Nikhil Pothineni,
The error ValueError: Invalid code path: None when using ml_client_workspace.components.download typically occurs if the component was uploaded without a properly defined code: field in the component YAML or if the code directory was not registered correctly at the time of upload. Although the component may appear to be uploaded successfully and the related files may exist in the workspace blob store, the download operation depends on the component metadata to include a valid code path. If this metadata is missing or set to None, the SDK cannot resolve the location of the code, resulting in the error. To resolve this, please ensure that the code: field is correctly specified in the component YAML and points to a valid local directory during upload. We recommend re-uploading the component with the appropriate code path. Once done, you should be able to successfully use the download() method.
If the issue persists, please let us know the steps you followed and the region where your workspace is hosted, so we can assist you further.