docstr: Initialize a reference from a remote and ref.
  
  Arguments:
      remote: A remote URL or URI.
      ref: A branch, tag, or commit hash.
docstr_tok: ["Initialize","a","reference","from","a","remote","and","ref",".","Arguments",":","remote",":","A","remote","URL","or","URI",".","ref",":","A","branch",",","tag",",","or","commit","hash","."]
code: def __init__(self, remote: str, ref: Optional[str] = None) -> None:
      """Initialize a reference from a remote and ref.
  
      Arguments:
          remote: A remote URL or URI.
          ref: A branch, tag, or commit hash.
      """
      self.uri = remote
      self.ref = ref
  
file_path: wandb/wandb/sdk/launch/git_reference.py
imports: import re
  from dataclasses import dataclass
  from enum import IntEnum
  from typing import Optional, Tuple, Union
  from wandb.sdk.launch.errors import LaunchError
label_desc: Use image node_id 1 to create a new GitReference object  with example: obj = GitReference(remote, ref)