title: How to access all tags from a DICOM group number?
body: <p>I would like to extract from a DICOM all the dicom tags with the same group number. For example, I would like to extract all tags belonging to the group <code>0010</code>. I tried this, and of course it made an error:</p>
  <pre class="lang-py prettyprint-override"><code>import pydicom
  ds=pydicom.dcmread('dicomfile.dcm')
  
  print(ds[0x0008,0x0020]) # print the tag corresponding to group number 0008, and element number 0020
  
  print(ds[0x0010,:]) # ERROR, does not print a list of all tags belonging to group 0008.
  </code></pre>
  <p>Is there a pydicom method to do it?</p>