code: def _load_gencode_gtf(gtf_file=None, reference_genome=None):
      """
      Get Gencode GTF (from file or reference genome)
  
      Parameters
      ----------
      reference_genome : :class:`.ReferenceGenome`, optional
         Reference genome to use (passed along to import_gtf).
      gtf_file : :class:`str`
         GTF file to load. If none is provided, but `reference_genome` is one of
         `GRCh37` or `GRCh38`, a default will be used (on Google Cloud Platform).
  
      Returns
      -------
      :class:`.Table`
      """
      GTFS = {
          "GRCh37": "gs://hail-common/references/gencode/gencode.v19.annotation.gtf.bgz",
          "GRCh38": "gs://hail-common/references/gencode/gencode.v29.annotation.gtf.bgz",
      }
      if reference_genome is None:
          reference_genome = hl.default_reference().name
      else:
          reference_genome = reference_genome.name
      if gtf_file is None:
          gtf_file = GTFS.get(reference_genome)
          if gtf_file is None:
              raise ValueError(
                  "get_gene_intervals requires a GTF file, or the reference genome be one of GRCh37 or GRCh38 (when on Google Cloud Platform)"
              )
      ht = hl.experimental.import_gtf(
          gtf_file,
          reference_genome=reference_genome,
          skip_invalid_contigs=True,
          min_partitions=12,
      )
      ht = ht.annotate(
          gene_id=ht.gene_id.split("\\.")[0],
          transcript_id=ht.transcript_id.split("\\.")[0],
      )
      return ht
  
file_path: hail/hail/python/hail/experimental/import_gtf.py
imports: import operator
  import functools
  import hail
  from hail.genetics.reference_genome import reference_genome_type
  from hail.typecheck import typecheck, nullable, sequenceof
  from hail.utils.java import info
  from hail.utils import new_temp_file
label_desc: Use image node_id 3 for calling a global function with example usage: _load_gencode_gtf(gtf_file, reference_genome) and returns: ht