<SYSTEM_TASK:>
Given the following text description, write Python code to implement the functionality described below step by step
<END_TASK>
<USER_TASK:>
Description:
 GA4GH 1000 Genomes Metadata Service
This example illustrates how to access the available datasets in a GA4GH server. 
Initialize client
In this step we create a client object which will be used to communicate with the server. It is initialized using the URL.
Step1:  We will continue to refer to this client object for accessing the remote server.
Access the dataset
Here, we issue or first API call to get a listing of datasets hosted by the server. The API call returns an iterator, which is iterated on once to get the 1kgenomes dataset.
Step2:  NOTE
<ASSISTANT_TASK:>
Python Code:
import ga4gh_client.client as client
c = client.HttpClient("http://1kgenomes.ga4gh.org")
Explanation: GA4GH 1000 Genomes Metadata Service
This example illustrates how to access the available datasets in a GA4GH server. 
Initialize client
In this step we create a client object which will be used to communicate with the server. It is initialized using the URL.
End of explanation
dataset = c.search_datasets().next()
print dataset
data_set_id = dataset.id
Explanation: We will continue to refer to this client object for accessing the remote server.
Access the dataset
Here, we issue or first API call to get a listing of datasets hosted by the server. The API call returns an iterator, which is iterated on once to get the 1kgenomes dataset.
End of explanation
dataset_via_get = c.get_dataset(dataset_id=data_set_id)
print dataset_via_get
Explanation: NOTE:
We can also obtain individual datasets by knowing its id. From the above field, we use the id to obtain the dataset which belong to that dataset.
End of explanation
<END_TASK>